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.
21 lines
522 B
21 lines
522 B
2 months ago
|
// Code generated by Kitex v0.3.4. DO NOT EDIT.
|
||
|
package feedservice
|
||
|
|
||
|
import (
|
||
|
"github.com/TremblingV5/DouTok/kitex_gen/feed"
|
||
|
"github.com/cloudwego/kitex/server"
|
||
|
)
|
||
|
|
||
|
// NewServer creates a server.Server with the given handler and options.
|
||
|
func NewServer(handler feed.FeedService, opts ...server.Option) server.Server {
|
||
|
var options []server.Option
|
||
|
|
||
|
options = append(options, opts...)
|
||
|
|
||
|
svr := server.NewServer(options...)
|
||
|
if err := svr.RegisterService(serviceInfo(), handler); err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
return svr
|
||
|
}
|