Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountData ¶
type AccountData interface { // Write the Account record in DynamoDB // This is an upsert operation in which the record will either // be inserted or updated // prevLastModifiedOn parameter is the original lastModifiedOn Write(account *account.Account, prevLastModifiedOn *int64) error // Delete the Account record in DynamoDB Delete(account *account.Account) error // Get the Account record by ID Get(ID string) (*account.Account, error) // List Get a list of accounts List(query *account.Account) (*account.Accounts, error) }
AccountData makes working with the Account Data Layer easier
type LeaseData ¶
type LeaseData interface { // Get the Lease record by ID Get(ID string) (*lease.Lease, error) // GetByAccountIDAndPrincipalID gets the Lease record by AccountID and PrincipalID GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error) List(query *lease.Lease) (*lease.Leases, error) // List Get a list of leases // Write the Lease record in DynamoDB // This is an upsert operation in which the record will either // be inserted or updated // prevLastModifiedOn parameter is the original lastModifiedOn Write(lease *lease.Lease, prevLastModifiedOn *int64) error }
LeaseData makes working with the Lease Data Layer easier
Click to show internal directories.
Click to hide internal directories.