Files
EdgeCommon/pkg/serverconfigs/protocol_tcp_config.go

22 lines
336 B
Go
Raw Normal View History

2020-09-13 19:27:47 +08:00
package serverconfigs
2020-12-18 21:19:25 +08:00
import "encoding/json"
2020-09-13 19:27:47 +08:00
type TCPProtocolConfig struct {
BaseProtocol `yaml:",inline"`
}
func (this *TCPProtocolConfig) Init() error {
err := this.InitBase()
if err != nil {
return err
}
return nil
}
2020-12-18 21:19:25 +08:00
// 转换为JSON
func (this *TCPProtocolConfig) AsJSON() ([]byte, error) {
return json.Marshal(this)
}