Some API fixes
This commit is contained in:
@ -123,12 +123,12 @@ type Bus struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Listeners .
|
// Listeners .
|
||||||
type Listener struct {
|
// type Listener struct {
|
||||||
ID string
|
// ID string
|
||||||
Port int `json:"port" yaml:"port"`
|
// Port int `json:"port" yaml:"port"`
|
||||||
Cert string `json:"cert,omitempty" yaml:"cert,omitempty"`
|
// Cert string `json:"cert,omitempty" yaml:"cert,omitempty"`
|
||||||
PKey string `json:"pkey,omitempty" yaml:"pkey,omitempty"`
|
// PKey string `json:"pkey,omitempty" yaml:"pkey,omitempty"`
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Logging .
|
// Logging .
|
||||||
type Logging struct {
|
type Logging struct {
|
||||||
|
2
main.go
2
main.go
@ -127,7 +127,7 @@ func main() {
|
|||||||
app.Log.Error(err.Error())
|
app.Log.Error(err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
api := listeners.NewHttpApi(cfg.Listeners[0], db)
|
api := listeners.NewHttpApi(cfg.Listeners[1], db)
|
||||||
err = app.AddListener(api)
|
err = app.AddListener(api)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
app.Log.Error(err.Error())
|
app.Log.Error(err.Error())
|
||||||
|
Reference in New Issue
Block a user