services

package
v0.0.2-0...-058d74b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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) Close

func (srv *Services) Close()

func (*Services) Init

func (srv *Services) Init(etcdName string, etcdCli *etcdclient.Client, reg utils.Register)

func (*Services) Rank

func (srv *Services) Rank(ctx context.Context, request *longmenapi.Request) (*longmenapi.Response, error)

func (*Services) RankHandler

func (srv *Services) RankHandler(c *gin.Context)

func (*Services) RegisterGinRouter

func (srv *Services) RegisterGinRouter(ginEngine *gin.Engine)

func (*Services) RegisterGrpc

func (srv *Services) RegisterGrpc(grpcS *grpc.Server)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL