Documentation ¶
Index ¶
- func NewChequeStore(opts ...Option) chequebook.ChequeStore
- type Option
- type Service
- func (s *Service) LastCheque(chequebook common.Address) (*chequebook.SignedCheque, error)
- func (s *Service) LastCheques() (map[common.Address]*chequebook.SignedCheque, error)
- func (s *Service) ReceiveCheque(ctx context.Context, cheque *chequebook.SignedCheque, exchangeRate *big.Int, ...) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChequeStore ¶
func NewChequeStore(opts ...Option) chequebook.ChequeStore
NewChequeStore creates the mock chequeStore implementation
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is the option passed to the mock ChequeStore service
func WithLastChequeFunc ¶
func WithLastChequeFunc(f func(chequebook common.Address) (*chequebook.SignedCheque, error)) Option
func WithLastChequesFunc ¶
func WithLastChequesFunc(f func() (map[common.Address]*chequebook.SignedCheque, error)) Option
func WithReceiveChequeFunc ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the mock chequeStore service.
func (*Service) LastCheque ¶
func (s *Service) LastCheque(chequebook common.Address) (*chequebook.SignedCheque, error)
func (*Service) LastCheques ¶
func (s *Service) LastCheques() (map[common.Address]*chequebook.SignedCheque, error)
func (*Service) ReceiveCheque ¶
Click to show internal directories.
Click to hide internal directories.