Documentation ¶
Index ¶
- type Services
- func (srv *Services) Close()
- func (srv *Services) Init(etcdName string, etcdCli *etcdclient.Client, reg utils.Register)
- func (srv *Services) Rank(ctx context.Context, request *longmenapi.Request) (*longmenapi.Response, error)
- func (srv *Services) RankHandler(c *gin.Context)
- func (srv *Services) RegisterGinRouter(ginEngine *gin.Engine)
- func (srv *Services) RegisterGrpc(grpcS *grpc.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Services ¶
type Services struct { longmenapi.UnimplementedRankServer inference.InferMgr // contains filtered or unexported fields }
func NewServices ¶
func NewServices() *Services
func (*Services) Rank ¶
func (srv *Services) Rank(ctx context.Context, request *longmenapi.Request) (*longmenapi.Response, error)
func (*Services) RankHandler ¶
func (*Services) RegisterGinRouter ¶
func (*Services) RegisterGrpc ¶
Click to show internal directories.
Click to hide internal directories.