Documentation ¶
Index ¶
- func DeleteSession(ctx context.Context)
- func GetHttpCookies(ctx context.Context) map[string]string
- func GetHttpSession[T repos.Entity](ctx context.Context) T
- func GetSession[T repos.Entity](ctx context.Context) T
- func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter
- func NewReadSessionMiddleware(repo kv.Repo[*common.AuthSession], cookieName string, sessionKeyPrefix string) fiber.Handler
- func NewRoundTripperWithHeaders(rt http.RoundTripper, headers map[string][]string) http.RoundTripper
- func NewSessionMiddleware(repo kv.Repo[*common.AuthSession], cookieName string, cookieDomain string, ...) fiber.Handler
- func SetSession[T repos.Entity](ctx context.Context, session T)
- type HttpMiddleware
- type Server
- type ServerArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteSession ¶
func NewLoggingResponseWriter ¶
func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter
func NewRoundTripperWithHeaders ¶
func NewRoundTripperWithHeaders(rt http.RoundTripper, headers map[string][]string) http.RoundTripper
func NewSessionMiddleware ¶
Types ¶
type HttpMiddleware ¶
type HttpMiddleware func(handle http.HandlerFunc) http.HandlerFunc
func NewLoggingMiddleware ¶
func NewLoggingMiddleware(logger logging.Logger) HttpMiddleware
func NewReadSessionMiddlewareHandler ¶
func NewReadSessionMiddlewareHandler(repo kv.Repo[*common.AuthSession], cookieName string, sessionKeyPrefix string) HttpMiddleware
Click to show internal directories.
Click to hide internal directories.