Documentation
¶
Index ¶
- func GetNullableUserID(ctx context.Context) uuid.NullUUID
- func GetSession(ctx context.Context) (*app.SessionInfo, bool)
- func GetUser(ctx context.Context) (*app.SelfUserDto, bool)
- func NewAuthorizationMiddleware(sessionService app.SessionService, userService app.UserService, ...) func(http.Handler) http.Handler
- func RequireSession(ctx context.Context) *app.SessionInfo
- func RequireUser(ctx context.Context) *app.SelfUserDto
- type MiddlewareOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSession ¶
func GetSession(ctx context.Context) (*app.SessionInfo, bool)
func NewAuthorizationMiddleware ¶
func NewAuthorizationMiddleware( sessionService app.SessionService, userService app.UserService, options MiddlewareOptions, ) func(http.Handler) http.Handler
func RequireSession ¶
func RequireSession(ctx context.Context) *app.SessionInfo
func RequireUser ¶
func RequireUser(ctx context.Context) *app.SelfUserDto
Types ¶
type MiddlewareOptions ¶
Click to show internal directories.
Click to hide internal directories.