service

package
v0.0.0-...-c2c1f3f Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type GreeterJob

type GreeterJob struct {
	// contains filtered or unexported fields
}

func NewGreeterJob

func NewGreeterJob(uc *biz.GreeterUsecase, ck *conf.Server) *GreeterJob

NewGreeterService new a greeter service.

func (*GreeterJob) Handle

func (s *GreeterJob) Handle(msg *kafka.Message) error

func (*GreeterJob) Topic

func (s *GreeterJob) Topic() string

type GreeterService

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

GreeterService is a greeter service.

func NewGreeterService

func NewGreeterService(uc *biz.GreeterUsecase) *GreeterService

NewGreeterService new a greeter service.

func (*GreeterService) SayHello

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

SayHello implements helloworld.GreeterServer.

Jump to

Keyboard shortcuts

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