Documentation ¶
Index ¶
- func GetAccessToken(ctx context.Context) (string, error)
- func GetCurrentSession(ctx context.Context) (*models.Session, error)
- func GetCurrentUser(ctx context.Context) (*models.User, error)
- func NewAdminOnly(j *snakepit.JSON) func(next chi.Handler) chi.Handler
- func NewAuthenticatedOnly(j *snakepit.JSON) func(next chi.Handler) chi.Handler
- func NewContext() func(next chi.Handler) chi.Handler
- func NewGate(j *snakepit.JSON, g func(role models.Role) bool) func(next chi.Handler) chi.Handler
- type Context
- type Gate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticatedOnly ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.