model

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrSessionWithoutAuth     = "session without authentication"
	ErrAuthTokenNotFound      = "authentication token not found"
	ErrAuthenticationRequired = "authentication required"
	ErrSessionInvalidUser     = "session contains an invalid user object"
)
View Source
const AuthSchemaBearer string = "bearer"
View Source
const HeaderAuthorize = "authorization"
View Source
const LogAuthUser = "authUser: %++v"
View Source
const LogJwtToken = "jwtToken: %++v" //nolint:gosec

#nosec

View Source
const LogMdcSessionUserID = "sessionUserUID"
View Source
const LogSessionUser = "sessionUser: %++v"

Variables

This section is empty.

Functions

This section is empty.

Types

type SessionUser

type SessionUser struct {
	UID uuid.UUID

	Username string
	Email    string

	HasGuest bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL