Documentation
¶
Overview ¶
Database
authorities - store certificate authorities, private key, hostname regex group - store group, principal regex, principal validity user - store user special attributes, such as non-ldap user, groups certificates - store signed certificates, key by username/serial
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Location ¶
type Location struct { Latitude float64 `json:"latitude,omitempty"` Longitude float64 `json:"longitude,omitempty"` TimeZone string `json:"timezone,omitempty"` Country string `json:"country,omitempty"` City string `json:"city,omitempty"` }
shared location info
type User ¶
type User struct { ID string `json:"id,omitempty" gorm:"primary_key:true"` // meta data CreatedAt time.Time `json:"createdAt,omitempty"` ModifiedAt time.Time `json:"modifiedAt,omitempty"` // comments about this user Comment string `json:"comment,omitempty"` // ip address IP string `json:"ip,omitempty"` // geo location Location Location `json:"location,omitempty" gorm:"type:jsonb"` // reported status Status Status `json:"status,omitempty"` // whether the user is an administrator Administrator bool `json:"administrator,omitempty"` // screenshot Screenshot []byte `json:"-" gorm:"type:bytea"` // whether the user account has been disabled Disabled bool `json:"disabled,omitempty"` // whether the user is online, not saved in database Online bool `json:"online,omitempty" gorm:"-"` // current connections, not saved in database Connections interface{} `json:"connections,omitempty" gorm:"-"` }
represents a user connected to gateway
Click to show internal directories.
Click to hide internal directories.