Documentation ¶
Index ¶
- type DeckRepo
- type DeckService
- func (s *DeckService) CreateDeck(ctx context.Context, shuffled bool, cards []string) (*deck.CreateDeckResponse, error)
- func (s *DeckService) DrawCard(ctx context.Context, id string, count int64) (*deck.DrawCardResponse, error)
- func (s *DeckService) OpenDeck(ctx context.Context, id string) (*deck.OpenDeckResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeckService ¶
type DeckService struct {
// contains filtered or unexported fields
}
func NewDeckService ¶
func NewDeckService(repo DeckRepo, log *log.Logger) (*DeckService, error)
func (*DeckService) CreateDeck ¶
func (s *DeckService) CreateDeck(ctx context.Context, shuffled bool, cards []string) (*deck.CreateDeckResponse, error)
func (*DeckService) DrawCard ¶
func (s *DeckService) DrawCard(ctx context.Context, id string, count int64) (*deck.DrawCardResponse, error)
func (*DeckService) OpenDeck ¶
func (s *DeckService) OpenDeck(ctx context.Context, id string) (*deck.OpenDeckResponse, error)
Click to show internal directories.
Click to hide internal directories.