mockreceipt

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReceiptStore

type ReceiptStore struct {
	mock.Mock
}

ReceiptStore is an autogenerated mock type for the ReceiptStore type

func NewReceiptStore added in v0.9.18

func NewReceiptStore(t mockConstructorTestingTNewReceiptStore) *ReceiptStore

NewReceiptStore creates a new instance of ReceiptStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ReceiptStore) Close

func (_m *ReceiptStore) Close()

Close provides a mock function with given fields:

func (*ReceiptStore) GetReceipt

func (_m *ReceiptStore) GetReceipt(res http.ResponseWriter, req *http.Request, params httprouter.Params)

GetReceipt provides a mock function with given fields: res, req, params

func (*ReceiptStore) GetReceipts

func (_m *ReceiptStore) GetReceipts(res http.ResponseWriter, req *http.Request, params httprouter.Params)

GetReceipts provides a mock function with given fields: res, req, params

func (*ReceiptStore) Init

Init provides a mock function with given fields: _a0, _a1

func (*ReceiptStore) ProcessReceipt

func (_m *ReceiptStore) ProcessReceipt(msgBytes []byte)

ProcessReceipt provides a mock function with given fields: msgBytes

func (*ReceiptStore) ValidateConf

func (_m *ReceiptStore) ValidateConf() error

ValidateConf provides a mock function with given fields:

type ReceiptStorePersistence added in v0.9.9

type ReceiptStorePersistence struct {
	mock.Mock
}

ReceiptStorePersistence is an autogenerated mock type for the ReceiptStorePersistence type

func (*ReceiptStorePersistence) AddReceipt added in v0.9.9

func (_m *ReceiptStorePersistence) AddReceipt(requestID string, _a1 *map[string]interface{}) error

AddReceipt provides a mock function with given fields: requestID, _a1

func (*ReceiptStorePersistence) Close added in v0.9.9

func (_m *ReceiptStorePersistence) Close()

Close provides a mock function with given fields:

func (*ReceiptStorePersistence) GetReceipt added in v0.9.9

func (_m *ReceiptStorePersistence) GetReceipt(requestID string) (*map[string]interface{}, error)

GetReceipt provides a mock function with given fields: requestID

func (*ReceiptStorePersistence) GetReceipts added in v0.9.9

func (_m *ReceiptStorePersistence) GetReceipts(skip int, limit int, ids []string, sinceEpochMS int64, from string, to string, start string) (*[]map[string]interface{}, error)

GetReceipts provides a mock function with given fields: skip, limit, ids, sinceEpochMS, from, to, start

func (*ReceiptStorePersistence) Init added in v0.9.9

func (_m *ReceiptStorePersistence) Init() error

Init provides a mock function with given fields:

func (*ReceiptStorePersistence) ValidateConf added in v0.9.9

func (_m *ReceiptStorePersistence) ValidateConf() error

ValidateConf provides a mock function with given fields:

type Store added in v0.9.18

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore added in v0.9.18

func NewStore(t mockConstructorTestingTNewStore) *Store

NewStore creates a new instance of Store. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Store) Close added in v0.9.18

func (_m *Store) Close()

Close provides a mock function with given fields:

func (*Store) GetReceipt added in v0.9.18

func (_m *Store) GetReceipt(res http.ResponseWriter, req *http.Request, params httprouter.Params)

GetReceipt provides a mock function with given fields: res, req, params

func (*Store) GetReceipts added in v0.9.18

func (_m *Store) GetReceipts(res http.ResponseWriter, req *http.Request, params httprouter.Params)

GetReceipts provides a mock function with given fields: res, req, params

func (*Store) Init added in v0.9.18

Init provides a mock function with given fields: _a0, _a1

func (*Store) ProcessReceipt added in v0.9.18

func (_m *Store) ProcessReceipt(msgBytes []byte)

ProcessReceipt provides a mock function with given fields: msgBytes

func (*Store) ValidateConf added in v0.9.18

func (_m *Store) ValidateConf() error

ValidateConf provides a mock function with given fields:

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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