Documentation ¶
Index ¶
- type AccountServicer
- type Eventer
- type MultipleReader
- type Reader
- type ReaderWriter
- func (_m *ReaderWriter) Get(leaseID string) (*lease.Lease, error)
- func (_m *ReaderWriter) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)
- func (_m *ReaderWriter) List(_a0 *lease.Lease) (*lease.Leases, error)
- func (_m *ReaderWriter) Write(input *lease.Lease, lastModifiedOn *int64) error
- type Servicer
- func (_m *Servicer) Create(data *lease.Lease, principalSpentAmount float64) (*lease.Lease, error)
- func (_m *Servicer) Delete(ID string) (*lease.Lease, error)
- func (_m *Servicer) Get(ID string) (*lease.Lease, error)
- func (_m *Servicer) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)
- func (_m *Servicer) List(query *lease.Lease) (*lease.Leases, error)
- func (_m *Servicer) ListPages(query *lease.Lease, fn func(*lease.Leases) bool) error
- type SingleReader
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountServicer ¶
AccountServicer is an autogenerated mock type for the AccountServicer type
type Eventer ¶
Eventer is an autogenerated mock type for the Eventer type
func (*Eventer) LeaseCreate ¶
LeaseCreate provides a mock function with given fields: account
type MultipleReader ¶
MultipleReader is an autogenerated mock type for the MultipleReader type
type Reader ¶
Reader is an autogenerated mock type for the Reader type
type ReaderWriter ¶
ReaderWriter is an autogenerated mock type for the ReaderWriter type
func (*ReaderWriter) Get ¶
func (_m *ReaderWriter) Get(leaseID string) (*lease.Lease, error)
Get provides a mock function with given fields: leaseID
func (*ReaderWriter) GetByAccountIDAndPrincipalID ¶ added in v0.30.1
func (_m *ReaderWriter) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)
GetByAccountIDAndPrincipalID provides a mock function with given fields: accountID, principalID
type Servicer ¶
Servicer is an autogenerated mock type for the Servicer type
func (*Servicer) Create ¶
Create provides a mock function with given fields: data, principalSpentAmount
func (*Servicer) GetByAccountIDAndPrincipalID ¶ added in v0.30.1
func (_m *Servicer) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)
GetByAccountIDAndPrincipalID provides a mock function with given fields: accountID, principalID
type SingleReader ¶
SingleReader is an autogenerated mock type for the SingleReader type
func (*SingleReader) Get ¶
func (_m *SingleReader) Get(leaseID string) (*lease.Lease, error)
Get provides a mock function with given fields: leaseID
func (*SingleReader) GetByAccountIDAndPrincipalID ¶ added in v0.30.1
func (_m *SingleReader) GetByAccountIDAndPrincipalID(accountID string, principalID string) (*lease.Lease, error)
GetByAccountIDAndPrincipalID provides a mock function with given fields: accountID, principalID