Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Servicer ¶
type Servicer interface { // Get returns an account from ID Get(ID string) (*account.Account, error) // Save writes the record to the dataSvc Save(data *account.Account) error // Update the Account record in DynamoDB Update(ID string, data *account.Account) (*account.Account, error) // Delete finds a given account and deletes it if it is not of status `Leased`. Returns the account. Delete(data *account.Account) error // List Get a list of accounts based on Principal ID List(query *account.Account) (*account.Accounts, error) // ListPages Execute a function per page of accounts ListPages(query *account.Account, fn func(*account.Accounts) bool) error // Create creates a new account using the data provided. Returns the account record Create(data *account.Account) (*account.Account, error) // Reset initiates the Reset account process. Reset(id string) (*account.Account, error) // UpsertPrincipalAccess merges principal access to make sure its UpsertPrincipalAccess(data *account.Account) error }
Servicer makes working with the Account Service struct easier
Click to show internal directories.
Click to hide internal directories.