Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrForbidden = errors.New("forbidden access") ErrUnknownUser = errors.New("unknown user") ErrMalformedContent = errors.New("malformed content") ErrInvalidCredentials = errors.New("invalid credentials") )
View Source
var ErrUnknownUserKind = errors.New("unknown UserKind")
Functions ¶
Types ¶
type Authentication ¶
type Authorization ¶
type DiscordUser ¶
type DiscordUser struct {
Username string `json:"global_name"`
Avatar string `json:"avatar"`
ID string `json:"id"`
}
func (DiscordUser) GetID ¶
func (du DiscordUser) GetID() string
type GitHubUser ¶
func (GitHubUser) GetID ¶
func (gu GitHubUser) GetID() uint64
type GoogleUser ¶
type GoogleUser struct {
Sub string `json:"sub"`
Name string `json:"name"`
Picture string `json:"picture"`
}
func (GoogleUser) GetID ¶
func (gu GoogleUser) GetID() string
type OAuthClaim ¶
type User ¶
type UserKind ¶
type UserKind int
func ParseUserKind ¶
func (UserKind) MarshalText ¶ added in v3.13.4
func (*UserKind) UnmarshalText ¶ added in v3.13.4
Click to show internal directories.
Click to hide internal directories.