package main import ( "errors" "git.swzry.com/zry/zry-go-program-framework/core" ) var _ core.ISubService = (*UDPServerSubSvc)(nil) type UDPServerSubSvc struct { } func NewUDPServerSubSvc() *UDPServerSubSvc { s := &UDPServerSubSvc{} return s } func (T UDPServerSubSvc) Prepare(ctx *core.SubServiceContext) error { ctx.Error("currently not support udp") return errors.New("currently not support udp") } func (T UDPServerSubSvc) Run(ctx *core.SubServiceContext) error { ctx.Error("currently not support udp") return errors.New("currently not support udp") } func (T UDPServerSubSvc) Stop(ctx *core.SubServiceContext) { }