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.
24 lines
588 B
24 lines
588 B
// Code generated by Kitex v0.3.4. DO NOT EDIT.
|
|
|
|
package favoriteservice
|
|
|
|
import (
|
|
"github.com/TremblingV5/DouTok/kitex_gen/favorite"
|
|
"github.com/cloudwego/kitex/server"
|
|
)
|
|
|
|
// NewInvoker creates a server.Invoker with the given handler and options.
|
|
func NewInvoker(handler favorite.FavoriteService, 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
|
|
}
|
|
|