leaseiface

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 1 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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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