go_dreamfactory/modules/gate/options.go
2022-05-27 17:27:01 +08:00

19 lines
279 B
Go

package gate
import (
"github.com/liwei1dao/lego/utils/mapstructure"
)
type (
Options struct {
WSAddr string
}
)
func (this *Options) LoadConfig(settings map[string]interface{}) (err error) {
if settings != nil {
err = mapstructure.Decode(settings, this)
}
return
}