blob: e56663277e23311d2223977a421e0ff45dd28ccc [file] [log] [blame]
Scott Bakerf04b6392020-03-20 08:29:46 -07001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17// Package main implements the nem-ondemand-proxy
18package main
19
20import (
21 "github.com/opencord/nem-ondemand-proxy/internal/pkg/proxy"
22 "log"
23)
24
25func main() {
26 log.Printf("Starting nem-ondemand-proxy")
27
28 proxy.ParseCommandLine()
29 proxy.ProcessGlobalOptions()
30 proxy.ShowGlobalOptions()
31
32 handler := proxy.NewOnDemandHandler()
33 server := proxy.NewOnDemandServer(handler)
34
35 if err := server.StartServing(); err != nil {
36 log.Fatalf("failed to serve: %v", err)
37 }
38}