6a9650018badb2cfebee5c66c8d76c434bebde40
[ealt-edge.git] / mecm / mepm / applcm / broker / cmd / broker / main.go
1 /*
2  * Copyright 2020 Huawei Technologies Co., Ltd.
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 package main
17
18 import (
19         "broker/pkg/handlers"
20         "log"
21         "os"
22 )
23 /*
24 var (
25         GcukCertFile    = os.Getenv("GCUK_CERT_FILE")
26         GcukKeyFile     = os.Getenv("GCUK_KEY_FILE")
27         GcukServiceAddr = os.Getenv("GCUK_SERVICE_ADDR")
28 )*/
29
30 func main() {
31         logger := log.New(os.Stdout, "broker ", log.LstdFlags|log.Lshortfile)
32
33         handler := &handlers.Handlers{}
34         handler.Initialize(logger)
35         //handler.Run("127.0.0.1:8081")
36         handler.Run("0.0.0.0:8081")
37 }