Documentation ¶
Index ¶
- type Account
- func (a *Account) AddBeacon(newBeacon beacon.Beacon)
- func (a *Account) AddSharedSeed(ss beacon.SharedSeed)
- func (a *Account) MarshalJSON() ([]byte, error)
- func (a *Account) Payee() bool
- func (a *Account) Payer() bool
- func (a *Account) Ready() bool
- func (a *Account) RemoveBeacon(toRemove beacon.Beacon)
- func (a *Account) RemoveSharedSeed(ss beacon.SharedSeed)
- func (a *Account) UnmarshalJSON(b []byte) (err error)
- type AccountDb
- func (a *AccountDb) AddConnectionAttempt(attemptedBeacon beacon.Beacon, err error)
- func (a AccountDb) Depersist() error
- func (a *AccountDb) GetDisconnectedBeacons() (beacons []beacon.Beacon)
- func (a AccountDb) GetSummaryString(locations []location.Location) (summaryStr string)
- func (a AccountDb) Persist() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { AccountName string `json:"account_name"` AccountUuid string `json:"account_uuid"` Wad wad.Wad `json:"wad"` // pending TODO Beacons []beacon.Beacon `json:"beacons"` }
represents a terminus account
func AdbFromFile ¶
read an account db out of a file
func (*Account) AddSharedSeed ¶
func (a *Account) AddSharedSeed(ss beacon.SharedSeed)
func (*Account) MarshalJSON ¶
func (*Account) RemoveBeacon ¶
func (*Account) RemoveSharedSeed ¶
func (a *Account) RemoveSharedSeed(ss beacon.SharedSeed)
func (*Account) UnmarshalJSON ¶
type AccountDb ¶
type AccountDb struct { Details Account // map of beacon string to most recent error when trying to connect ConnectionAttempts map[string]error // contains filtered or unexported fields }
represents the data store for a single account
func GetAccountDbs ¶
get a list of accoutdbs from our config file in python this is an iter, but I can only assume we're not using this for a large number of accounts (hopefully)
func GetPersistedAccounts ¶
func (*AccountDb) AddConnectionAttempt ¶
add a connection attempt for the current account
func (*AccountDb) GetDisconnectedBeacons ¶ added in v0.17.0
get array of beacons which have disconnected
func (AccountDb) GetSummaryString ¶
Click to show internal directories.
Click to hide internal directories.