service

package
v0.0.0-...-8af7e35 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 6 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type GreeterService

type GreeterService struct {
	v1.UnimplementedGoodBabyServer
	// contains filtered or unexported fields
}

GreeterService is a greeter service.

func NewGreeterService

func NewGreeterService(logger log.Logger, speaker ISpeaker) *GreeterService

NewGreeterService new a greeter service.

func (*GreeterService) IncreaseScore

func (s *GreeterService) IncreaseScore(ctx context.Context, request *v1.IncreaseScoreRequest) (*v1.IncreaseScoreReply, error)

type ISpeaker

type ISpeaker interface {
	Say(ctx context.Context, hello string) (string, error)
}

ISpeaker .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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