dataiface

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL