mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
22 lines
339 B
Go
22 lines
339 B
Go
package serverconfigs
|
|
|
|
import "encoding/json"
|
|
|
|
type UnixProtocolConfig struct {
|
|
BaseProtocol `yaml:",inline"`
|
|
}
|
|
|
|
func (this *UnixProtocolConfig) Init() error {
|
|
err := this.InitBase()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// 转换为JSON
|
|
func (this *UnixProtocolConfig) AsJSON() ([]byte, error) {
|
|
return json.Marshal(this)
|
|
}
|