临时提交

This commit is contained in:
GoEdgeLab
2020-07-21 11:18:47 +08:00
commit cb5d9feb7a
32 changed files with 729 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
package configs
type UnixProtocolConfig struct {
IsOn bool `yaml:"isOn"` // 是否开启
Listen []string `yaml:"listen" json:"listen"` // 监听地址
}
func (this *UnixProtocolConfig) Addresses() []string {
result := []string{}
for _, listen := range this.Listen {
result = append(result, ProtocolUnix+":"+listen)
}
return result
}