Documentation ¶
Overview ¶
Package extauthapi implementaton for debugging and testing.
Index ¶
Constants ¶
View Source
const ( // SessionCookieName is a name of HTTP cookie with session token. SessionCookieName = "__AuthKey" // CSRFTokenCookieName is a name of HTTP cookie with CSRF token. CSRFTokenCookieName = "__CSRFToken" //nolint:gosec // CSRFTokenHeaderName is a name of HTTP header with CSRF token bound to session token. CSRFTokenHeaderName = "X-CSRFTokenBound" //nolint:gosec )
Variables ¶
View Source
var NoID = ID(uuid.Nil) //nolint:gochecknoglobals
NoID means absent user ID.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { }
Client for extauthapi.
type ID ¶
ID contains user ID (UUIDv4) or NoID. On Scan/Unmarshal values nil and empty string are considered NoID. On String/Value/Marshal NoID is 00000000-0000-0000-0000-000000000000.
func MustParseID ¶
MustParseID returns ID parsed from string input. Same behavior as ParseID, but panics on error.
func ParseID ¶
ParseID returns ID parsed from string input. Input is expected in a form accepted by UnmarshalText.
func (ID) String ¶
Returns canonical string representation of UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
func (*ID) UnmarshalText ¶
UnmarshalText implements the encoding.TextUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.