Files
EdgeCommon/pkg/serverconfigs/protocol_tcp_config.go
2020-12-18 21:19:25 +08:00

22 lines
336 B
Go

package serverconfigs
import "encoding/json"
type TCPProtocolConfig struct {
BaseProtocol `yaml:",inline"`
}
func (this *TCPProtocolConfig) Init() error {
err := this.InitBase()
if err != nil {
return err
}
return nil
}
// 转换为JSON
func (this *TCPProtocolConfig) AsJSON() ([]byte, error) {
return json.Marshal(this)
}