service

package
v1.0.2 Latest Latest
Warning

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

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

README

Service

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewGameService)

ProviderSet is service providers.

Functions

This section is empty.

Types

type GameService added in v1.0.2

type GameService struct {
	game.UnimplementedGameServer
	// contains filtered or unexported fields
}

GameService is a game service.

func NewGameService added in v1.0.2

func NewGameService(task *task.Task, idempotent *idempotent.Idempotent, game *biz.GameUseCase) *GameService

NewGameService new a service.

func (*GameService) CreateGame added in v1.0.2

func (s *GameService) CreateGame(ctx context.Context, req *game.CreateGameRequest) (rp *emptypb.Empty, err error)

func (*GameService) DeleteGame added in v1.0.2

func (s *GameService) DeleteGame(ctx context.Context, req *game.IdsRequest) (rp *emptypb.Empty, err error)

func (*GameService) FindGame added in v1.0.2

func (s *GameService) FindGame(ctx context.Context, req *game.FindGameRequest) (rp *game.FindGameReply, err error)

func (*GameService) GetGame added in v1.0.2

func (s *GameService) GetGame(ctx context.Context, req *game.GetGameRequest) (rp *game.GetGameReply, err error)

func (*GameService) Idempotent added in v1.0.2

func (s *GameService) Idempotent(ctx context.Context, req *emptypb.Empty) (rp *game.IdempotentReply, err error)

func (*GameService) UpdateGame added in v1.0.2

func (s *GameService) UpdateGame(ctx context.Context, req *game.UpdateGameRequest) (rp *emptypb.Empty, err error)

Jump to

Keyboard shortcuts

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