You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
paopao-ce/internal/servants/web/core.go

48 lines
935 B

package web
import (
api "github.com/rocboss/paopao-ce/internal/mirc/auto/api/v1"
"github.com/rocboss/paopao-ce/internal/servants/core"
)
var (
_ api.WebCore = (*webCoreSrv)(nil)
_ api.WebCoreBinding = (*webCoreBinding)(nil)
_ api.WebCoreRender = (*webCoreRender)(nil)
)
type webCoreSrv struct {
core.BaseServant
api.UnimplementedWebCoreServant
}
type webCoreBinding struct {
core.BaseBinding
*api.UnimplementedWebCoreBinding
}
type webCoreRender struct {
core.BaseRender
*api.UnimplementedWebCoreRender
}
func newWebCoreSrv() api.WebCore {
return &webCoreSrv{}
}
func newWebCoreBinding() api.WebCoreBinding {
return &webCoreBinding{
UnimplementedWebCoreBinding: &api.UnimplementedWebCoreBinding{
BindAny: core.BindAny,
},
}
}
func newWebCoreRender() api.WebCoreRender {
return &webCoreRender{
UnimplementedWebCoreRender: &api.UnimplementedWebCoreRender{
RenderAny: core.RenderAny,
},
}
}