Documentation ¶
Index ¶
Constants ¶
View Source
const ( AccountLevelDeity = iota AccountLevelOwner AccountLevelSub )
Variables ¶
This section is empty.
Functions ¶
func GetAccountLevel ¶
Types ¶
type AccountCredentials ¶
type AccountRecord ¶
type AccountStorage ¶
type AccountStorage struct {
Database Database
}
func NewAccountStorage ¶
func NewAccountStorage(d Database) *AccountStorage
func (AccountStorage) Delete ¶
func (a AccountStorage) Delete(id string) error
func (AccountStorage) Fetch ¶
func (a AccountStorage) Fetch(id string) (AccountRecord, error)
func (AccountStorage) Insert ¶
func (a AccountStorage) Insert(data AccountRecord) error
type AgentCredentials ¶
type AgentRecord ¶
type AgentRecord struct { ID string `json:"id"` Name string `json:"name"` AgentCredentials AccountRecord }
type AgentStorage ¶
type AgentStorage struct {
Database Database
}
func NewAgentStorage ¶
func NewAgentStorage(d Database) *AgentStorage
func (AgentStorage) Delete ¶
func (a AgentStorage) Delete(id string) error
func (AgentStorage) Fetch ¶
func (a AgentStorage) Fetch(id string) (AgentRecord, error)
func (AgentStorage) Insert ¶
func (a AgentStorage) Insert(data AgentRecord) error
type LogRecord ¶ added in v0.6.0
type LogRecord struct { ID string `json:"id"` AgentID string `json:"agent_id"` Level string `json:"level"` Line string `json:"line"` File string `json:"file"` Stack string `json:"stack"` LogFmt string `json:"log_fmt"` Entry string `json:"entry"` LoggedTime time.Time `json:"logged_time" dynamodbav:"-"` Logged string `json:"logged"` }
type LogStorage ¶ added in v0.6.0
type LogStorage struct {
Database Database
}
func NewLogStorage ¶ added in v0.6.0
func NewLogStorage(d Database) *LogStorage
func (LogStorage) Store ¶ added in v0.6.0
func (l LogStorage) Store(data LogRecord) error
Click to show internal directories.
Click to hide internal directories.