Documentation ¶
Index ¶
- type CardService
- func (s *CardService) Create(card *tuc.Card) error
- func (s *CardService) Delete(userID, cardID string) error
- func (s *CardService) Get(userID, cardID string) (*tuc.Card, error)
- func (s *CardService) List(userID string) ([]tuc.Card, error)
- func (s *CardService) Update(userID, cardID string, balance float64) (*tuc.Card, error)
- type LoginRequestService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardService ¶
type CardService struct{}
CardService represents an dynamodb implementation of tuc.CardService.
func (*CardService) Get ¶
func (s *CardService) Get(userID, cardID string) (*tuc.Card, error)
Get individual card.
type LoginRequestService ¶
type LoginRequestService struct{}
LoginRequestService represents an dynamodb implementation of tuc.LoginRequestService.
func (*LoginRequestService) Create ¶
func (s *LoginRequestService) Create(request *tuc.LoginRequest) error
Create a new login request.
func (*LoginRequestService) Delete ¶
func (s *LoginRequestService) Delete(email, code string) error
Delete a login request.
func (*LoginRequestService) Verify ¶
func (s *LoginRequestService) Verify(email, token string) error
Verify a login request.
type UserService ¶
type UserService struct{}
UserService represents an dynamodb implementation of tuc.UserService.
func (*UserService) Create ¶
func (s *UserService) Create(user *tuc.User) error
Create creates a new user.
Click to show internal directories.
Click to hide internal directories.