service

package
v0.0.0-...-657e486 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type CardService

type CardService struct {
	api.UnimplementedUserServer
	// contains filtered or unexported fields
}

CardService is a card service.

func NewCardService

func NewCardService(uc *biz.CardUsecase, logger log.Logger) *CardService

NewCardService new a card service.

type UserService

type UserService struct {
	api.UnimplementedUserServer
	// contains filtered or unexported fields
}

UserService is a user service.

func NewUserService

func NewUserService(uc *biz.UserUsecase, logger log.Logger) *UserService

NewUserService new a user service.

func (*UserService) AddCard

func (u *UserService) AddCard(ctx context.Context, in *api.AddCardReq) (*api.AddCardReply, error)

AddCard implements user.AddCard

func (*UserService) CreateUser

func (u *UserService) CreateUser(ctx context.Context, req *api.CreateUserReq) (*api.CreateUserReply, error)

CreateUser implements user.userServer.

func (*UserService) GetUser

func (u *UserService) GetUser(ctx context.Context, in *api.GetUserReq) (*api.GetUserReply, error)

func (*UserService) ListCards

func (u *UserService) ListCards(ctx context.Context, in *api.ListCardsReq) (*api.ListCardsReply, error)

ListCards implements card.ListCards.

Jump to

Keyboard shortcuts

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