go_dreamfactory/modules/gateway/options.go
2022-05-31 16:35:44 +08:00

19 lines
283 B
Go

package gateway
import (
"github.com/liwei1dao/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
}