Documentation
¶
Overview ¶
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Copyright (c) 2024 Eli Janssen Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.
Index ¶
- func ContextGet[T any](ctx context.Context, key string) (T, bool)
- func ContextSet(ctx context.Context, key string, value any) context.Context
- func IsLoggedIn(ctx context.Context) bool
- func Load(userGetter UserGetter, intGetter GetInter) func(http.Handler) http.Handler
- func LoadAuthToken(next http.Handler) http.Handler
- func Require(next http.Handler) http.Handler
- func UserFromContext(ctx context.Context) (*model.User, error)
- type GetInter
- type UserGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLoggedIn ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.