Documentation ¶
Index ¶
Constants ¶
View Source
const ( UserLevelAdmin = UserLevel(999) UserLevelUntrusted = UserLevel(0) )
View Source
const (
IDBytesLen = 16
)
Variables ¶
View Source
var (
InvalidID = errors.New("Invalid ID.")
)
Functions ¶
Types ¶
type ID ¶
type ID struct { String string Bytes [IDBytesLen]byte // contains filtered or unexported fields }
The ID of en entity, in the form of an UUID.
type Outbound ¶
type Outbound interface {
Targets() []*OutboundTarget
}
type OutboundTarget ¶
type OutboundTarget struct { Destination v2net.Destination Accounts []User }
type UserSettings ¶ added in v0.14.1
type UserSettings struct {
PayloadReadTimeout int
}
func GetUserSettings ¶ added in v0.14.1
func GetUserSettings(level UserLevel) UserSettings
Click to show internal directories.
Click to hide internal directories.