Documentation
¶
Index ¶
Constants ¶
View Source
const ( ACCOUNTS_TABLE = "accounts" DEVICES_TABLE = "devices" ACCOUNTS_GSI_NAME = "username-index" DEVICES_GSI_NAME = "account-id-index" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
AccountId string `dynamodbav:"account-id"` // TODO: unmarshal into our own UUID type
Emails []string `dynamodbav:"emails"`
Username string `dynamodbav:"username"`
Password string `dynamodbav:"password"`
}
account represents an 'accounts' table entry
type Client ¶
type Client interface {
GetDeviceById(id string) (*Device, error)
GetAccountById(id string) (*Account, error)
GetAccountByUsername(username string) (*Account, error)
GetDevicesByAccount(id string) ([]Device, error)
UpdateAccountEmails(accountId string, emails []string) (*Account, error)
}
Client is a client for interfacing with a detectordag database
Click to show internal directories.
Click to hide internal directories.