Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct {
Balance float64 `json:"balance"`
ID string `json:"id"`
Name string `json:"name"`
Number string `json:"number"`
UserID string `json:"-" dynamodbav:"u_id"`
}
Card is an individual's card for an user.
type CardService ¶
type CardService interface {
List(userID string) ([]Card, error)
Get(userID, cardID string) (*Card, error)
Create(card *Card) error
Update(userID, cardID string, balance float64) (*Card, error)
Delete(userID, cardID string) error
}
CardService represents a service for managing cards.
type LoginRequest ¶
type LoginRequest struct {
RequestToken string `json:"request_token"`
UserID string `json:"-" dynamodbav:"u_id"`
VerificationToken string `json:"verification_token"`
Verified bool `json:"verified"`
}
LoginRequest is a login request for a user.
type LoginRequestService ¶
type LoginRequestService interface {
Create(request *LoginRequest) error
Delete(email, code string) error
Verify(email, token string) error
}
LoginRequestService represents a service for managing login requests.
Click to show internal directories.
Click to hide internal directories.