go_dreamfactory/modules/gateway/options.go
2022-06-07 20:18:22 +08:00

19 lines
278 B
Go

package gateway
import (
"go_dreamfactory/lego/utils/mapstructure"
)
type (
Options struct {
ListenPort int
}
)
func (this *Options) LoadConfig(settings map[string]interface{}) (err error) {
if settings != nil {
err = mapstructure.Decode(settings, this)
}
return
}