server

package
v0.0.0-...-47f881f Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NETWORK string = "tcp"
)

Variables

This section is empty.

Functions

func StartGRPCServer

func StartGRPCServer(port string, cert string, keyFile string, f func(grpcServer *grpc.Server)) error

Types

type FetcherApiSever

type FetcherApiSever struct {
	pb.UnimplementedFetcherServer
	// contains filtered or unexported fields
}

func CreateFetcherApiServer

func CreateFetcherApiServer(cfg *conf.FetcherApiConf, db *xorm.Engine) (*FetcherApiSever, error)

func (*FetcherApiSever) GetAuthorCount

func (s *FetcherApiSever) GetAuthorCount(ctx context.Context, request *pb.GetAuthorCountRequest) (response *pb.GetAuthorCountResponse, err error)

func (*FetcherApiSever) GetContentByHash

func (s *FetcherApiSever) GetContentByHash(ctx context.Context, request *pb.GetContentByHashRequest) (response *pb.GetContentByHashResponse, err error)

func (*FetcherApiSever) GetContentCount

func (s *FetcherApiSever) GetContentCount(ctx context.Context, request *pb.GetContentCountRequest) (response *pb.GetContentCountResponse, err error)

func (*FetcherApiSever) GetContentsInfo

func (s *FetcherApiSever) GetContentsInfo(ctx context.Context, request *pb.GetContentsInfoRequest) (response *pb.GetContentsInfoResponse, err error)

func (*FetcherApiSever) GetTopArticles

func (s *FetcherApiSever) GetTopArticles(ctx context.Context, request *pb.GetTopArticlesRequest) (response *pb.GetTopArticlesResponse, err error)

func (*FetcherApiSever) Search

func (s *FetcherApiSever) Search(ctx context.Context, request *pb.SearchRequest) (response *pb.SearchResponse, err error)

func (*FetcherApiSever) StartGRPCServer

func (s *FetcherApiSever) StartGRPCServer() error

Jump to

Keyboard shortcuts

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