Documentation
¶
Index ¶
Constants ¶
View Source
const ( SchemaName = "auth" RootUserName = "root" UserListLimit = 50 AuthHashAlgorithm = "sha256" APIPrefix = "/auth/v1" )
View Source
const ( ScopeRoot = "root" ScopeUserRead = "mutablelogic/go-server/pkg/auth/user_read" ScopeUserWrite = "mutablelogic/go-server/pkg/auth/user_write" )
View Source
const ( TokenStatusLive = TokenStatus("live") TokenStatusArchived = TokenStatus("archived") )
View Source
const ( UserStatusLive = UserStatus("live") UserStatusArchived = UserStatus("archived") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Token ¶
type TokenId ¶
type TokenList ¶
type TokenList struct {
TokenListRequest
Count uint64 `json:"count"`
Body []Token `json:"body,omitempty"`
}
type TokenListRequest ¶
type TokenListRequest struct {
Status *string `json:"status,omitempty" help:"Status"`
pg.OffsetLimit
}
func (TokenListRequest) String ¶
func (t TokenListRequest) String() string
type TokenNew ¶
type TokenStatus ¶
type TokenStatus string
type User ¶
type UserList ¶
type UserList struct {
UserListRequest
Count uint64 `json:"count"`
Body []User `json:"body,omitempty"`
}
type UserListRequest ¶
type UserListRequest struct {
Status *string `json:"status,omitempty" help:"Status"`
Scope *string `json:"scope,omitempty" help:"Scope"`
pg.OffsetLimit
}
func (UserListRequest) String ¶
func (user UserListRequest) String() string
type UserMeta ¶
type UserStatus ¶
type UserStatus string
Click to show internal directories.
Click to hide internal directories.