Documentation
¶
Index ¶
Constants ¶
View Source
const ApiUserKey = "api-user"
Variables ¶
View Source
var NoUser = &noUser{}
Functions ¶
Types ¶
type AccountApiKey ¶
type AccountApiKey interface {
GetHash() string
}
type AccountApiKeyGenerator ¶
type AccountApiKeyGenerator interface {
NewAccountApiKey(value string) (AccountApiKey, error)
}
type ApiUser ¶
type ApiUser interface {
Id() ID
AccountId() string
HasKey(apiKey AccountApiKey) bool
HasPermission(permission string) bool
Permissions() []string
}
ApiUser is a user of the API
func GetApiUser ¶
type Repository ¶
Click to show internal directories.
Click to hide internal directories.