pusher/kitex_gen/push/pushservice/invoker.go

25 lines
593 B
Go
Raw Normal View History

2024-05-17 18:02:10 +08:00
// Code generated by Kitex v0.9.0. DO NOT EDIT.
package pushservice
import (
push "gitea.timerzz.com/kedaya_haitao/pusher/kitex_gen/push"
server "github.com/cloudwego/kitex/server"
)
// NewInvoker creates a server.Invoker with the given handler and options.
func NewInvoker(handler push.PushService, opts ...server.Option) server.Invoker {
var options []server.Option
options = append(options, opts...)
s := server.NewInvoker(options...)
if err := s.RegisterService(serviceInfo(), handler); err != nil {
panic(err)
}
if err := s.Init(); err != nil {
panic(err)
}
return s
}