Documentation ¶
Index ¶
- Variables
- type Store
- func (s *Store) GetChalState(ctx context.Context, chalID string) any
- func (s *Store) GetUserFromSession(ctx context.Context) (uint, string, error)
- func (s *Store) LoadAndSave(next http.Handler) http.Handler
- func (s *Store) RemoveChalState(ctx context.Context, chalID string)
- func (s *Store) RemoveUserFromSession(ctx context.Context)
- func (s *Store) SetChalState(ctx context.Context, chalID string, state any)
- func (s *Store) SetUserForSession(ctx context.Context, userID uint, userType string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(New)
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetUserFromSession ¶
GetUserFromSession will get the user id from the session store located in the context.
func (*Store) RemoveUserFromSession ¶
func (*Store) SetChalState ¶
Click to show internal directories.
Click to hide internal directories.