Documentation ¶
Index ¶
- type WordsGrpcServiceServer
- func (s *WordsGrpcServiceServer) AddWord(ctx context.Context, req *words.AddWordRequest) (*words.AddWordResponse, error)
- func (s *WordsGrpcServiceServer) RandomWord(ctx context.Context, _ *words.RandomWordRequest) (*words.RandomWordResponse, error)
- func (s *WordsGrpcServiceServer) SearchWord(ctx context.Context, req *words.SearchWordRequest) (*words.SearchWordResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WordsGrpcServiceServer ¶
type WordsGrpcServiceServer struct {
// contains filtered or unexported fields
}
WordsGrpcServiceServer is an implementation of WordsServiceServer interface.
func NewWordsGrpcServiceServer ¶
func NewWordsGrpcServiceServer( repo domain.WordRepository, searchRepo domain.WordSearchRepository, cache *cache.Cache, meter metric.Meter, logger *logger.Logger, ) (*WordsGrpcServiceServer, error)
NewWordsGrpcServiceServer creates a new WordsGrpcServiceServer.
func (*WordsGrpcServiceServer) AddWord ¶
func (s *WordsGrpcServiceServer) AddWord( ctx context.Context, req *words.AddWordRequest, ) (*words.AddWordResponse, error)
AddWord implements words.WordsServiceServer.
func (*WordsGrpcServiceServer) RandomWord ¶
func (s *WordsGrpcServiceServer) RandomWord( ctx context.Context, _ *words.RandomWordRequest, ) (*words.RandomWordResponse, error)
RandomWord implements words.WordsServiceServer.
func (*WordsGrpcServiceServer) SearchWord ¶
func (s *WordsGrpcServiceServer) SearchWord( ctx context.Context, req *words.SearchWordRequest, ) (*words.SearchWordResponse, error)
SearchWord implements words.WordsServiceServer.
Click to show internal directories.
Click to hide internal directories.