service

package
v0.0.0-...-acbaf2f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT, MIT Imports: 6 Imported by: 0

README

Job Service

  • 不需要提供http服务 不需要对外网提供

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type GreeterService

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

GreeterService is a greeter service.

func NewGreeterService

func NewGreeterService(uc *biz.GreeterUsecase, oc *biz.OrderQueueUsecase, 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 OrderService

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

OrderService is a order service.

func NewOrderService

func NewOrderService(oc *biz.OrderQueueUsecase) *OrderService

NewOrderService new a greeter service.

func (*OrderService) Create

func (s *OrderService) Create(ctx context.Context, m *biz.SeckillOrder)

Jump to

Keyboard shortcuts

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