Documentation ¶
Index ¶
- type MatchStorage
- type SessionStorage
- type Storage
- func (s *Storage) CreateSession(ctx context.Context, userId string) (*model.Session, error)
- func (s *Storage) GetLatestSession(ctx context.Context, userId string) (*model.Session, error)
- func (s *Storage) GetMatches(ctx context.Context, sessionId uint16, userId string, limit uint8, ...) ([]*model.Match, error)
- func (s *Storage) GetSessions(ctx context.Context, userId string, limit uint8, offset uint16) ([]*model.Session, error)
- func (s *Storage) GetUserByCode(ctx context.Context, code string) (*model.User, error)
- func (s *Storage) GetUsers(ctx context.Context) ([]*model.User, error)
- func (s *Storage) RemoveUser(ctx context.Context, code string) error
- func (s *Storage) SaveMatch(ctx context.Context, match model.Match) error
- func (s *Storage) SaveUser(ctx context.Context, displayName, code string) error
- func (s *Storage) UpdateSession(ctx context.Context, sesh *model.Session, match model.Match, sessionId uint16) error
- type UserStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchStorage ¶
type SessionStorage ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (*Storage) CreateSession ¶
func (*Storage) GetLatestSession ¶
func (*Storage) GetMatches ¶
func (*Storage) GetSessions ¶
func (*Storage) GetUserByCode ¶
Click to show internal directories.
Click to hide internal directories.