Documentation
¶
Index ¶
Constants ¶
View Source
const ( FundingSourceUnknown = iota FundingSourceSubmitIntent )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type FundingSource ¶
type FundingSource uint8
type Record ¶
type Store ¶
type Store interface {
// Save creates or updates a swap
Save(ctx context.Context, record *Record) error
// GetById gets a swap by ID
GetById(ctx context.Context, id string) (*Record, error)
// GetByFundingId gets a swap by the funding ID
GetByFundingId(ctx context.Context, fundingId string) (*Record, error)
// GetAllByOwnerAndState gets all swaps for an owner in a state
GetAllByOwnerAndState(ctx context.Context, owner string, state State) ([]*Record, error)
// GetAllByState gets all swaps by state
GetAllByState(ctx context.Context, state State, cursor query.Cursor, limit uint64, direction query.Ordering) ([]*Record, error)
}
Click to show internal directories.
Click to hide internal directories.