service

package
v0.0.0-...-ecdf00e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 9 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

func CreateClient

func CreateClient()

Types

type GreeterService

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

GreeterService is a greeter service.

func NewGreeterService

func NewGreeterService(uc *biz.GreeterUsecase, logger log.Logger) *GreeterService

NewGreeterService new a greeter service.

func (*GreeterService) SayHello

func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)

SayHello implements helloworld.GreeterServer

type PersonService

type PersonService struct {
	v1.UnimplementedPersonServer
	// contains filtered or unexported fields
}

func NewPersonService

func NewPersonService(uc *biz.PersonUsecase, logger log.Logger) *PersonService

func (*PersonService) CreatePerson

func (*PersonService) GetPerson

func (s *PersonService) GetPerson(ctx context.Context, req *v1.GetPersonRequest) (*v1.PersonReply, error)

func (*PersonService) ListPersons

func (s *PersonService) ListPersons(ctx context.Context, req *v1.ListPersonRequest) (*v1.ListPersonReply, error)

func (*PersonService) UpdatePerson

func (s *PersonService) UpdatePerson(ctx context.Context, req *v1.UpdatePersonRequest) (*v1.PersonReply, error)

Jump to

Keyboard shortcuts

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