dataiface

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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