增加SysLockerService等;提供多个便捷函数

This commit is contained in:
GoEdgeLab
2021-01-14 16:34:16 +08:00
parent 3bf931d8dc
commit facd88e8fd
11 changed files with 1580 additions and 541 deletions

View File

@@ -1,5 +1,7 @@
package serverconfigs
import "encoding/json"
type UnixProtocolConfig struct {
BaseProtocol `yaml:",inline"`
}
@@ -12,3 +14,8 @@ func (this *UnixProtocolConfig) Init() error {
return nil
}
// 转换为JSON
func (this *UnixProtocolConfig) AsJSON() ([]byte, error) {
return json.Marshal(this)
}