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 lease from ID Get(ID string) (*lease.Lease, error) // GetByAccountIDAndPrincipalID gets the Lease record by AccountID and PrincipalID GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error) // Save writes the record to the dataSvc Create(data *lease.Lease, principalSpentAmount float64) (*lease.Lease, error) // Update the Lease record to status Inactive in DynamoDB Delete(ID string) (*lease.Lease, error) // List Get a list of lease based on Lease ID List(query *lease.Lease) (*lease.Leases, error) // ListPages runs a function on each page in a list ListPages(query *lease.Lease, fn func(*lease.Leases) bool) error }
Servicer makes working with the Lease Service struct easier
Click to show internal directories.
Click to hide internal directories.