19 lines
279 B
Go
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
|
|
}
|