Documentation
¶
Index ¶
- type Account
- type Lease
- func (a *Lease) Get(leaseID string) (*lease.Lease, error)
- func (a *Lease) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)
- func (a *Lease) List(query *lease.Lease) (*lease.Leases, error)
- func (a *Lease) Write(lease *lease.Lease, prevLastModifiedOn *int64) error
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
DynamoDB dynamodbiface.DynamoDBAPI
TableName string `env:"ACCOUNT_DB"`
ConsistentRead bool `env:"USE_CONSISTENT_READS" envDefault:"false"`
Limit int64 `env:"LIMIT" envDefault:"25"`
}
Account - Data Layer Struct
type Lease ¶
type Lease struct {
DynamoDB dynamodbiface.DynamoDBAPI
TableName string `env:"LEASE_DB"`
ConsistentRead bool `env:"USE_CONSISTENT_READS" envDefault:"false"`
Limit int64 `env:"LIMIT" envDefault:"25"`
}
Lease - Data Layer Struct
func (*Lease) GetByAccountIDAndPrincipalID ¶
func (a *Lease) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)
GetByAccountIDAndPrincipalID gets the Lease record by AccountID and PrincipalID
type Usage ¶
type Usage struct {
DynamoDB dynamodbiface.DynamoDBAPI
TableName string `env:"USAGE_DB"`
ConsistentRead bool `env:"USE_CONSISTENT_READS" envDefault:"false"`
Limit int64 `env:"LIMIT" envDefault:"25"`
}
Usage - Data Layer Struct
func (*Usage) GetByStartDateAndPrincipalID ¶
func (a *Usage) GetByStartDateAndPrincipalID(startDate int64, principalID string) (*usage.Usage, error)
GetByStartDateAndPrincipalID gets the Usage record by StartDate and PrincipalID
Source Files
¶
Click to show internal directories.
Click to hide internal directories.