Documentation ¶
Index ¶
- type Gateway
- func (_m *Gateway) EXPECT() *Gateway_Expecter
- func (_m *Gateway) GetReceiptByTransactionHash(_a0 context.Context, _a1 tableland.ChainID, _a2 common.Hash) (gateway.Receipt, bool, error)
- func (_m *Gateway) GetTableMetadata(_a0 context.Context, _a1 tableland.ChainID, _a2 tables.TableID) (gateway.TableMetadata, error)
- func (_m *Gateway) RunReadQuery(ctx context.Context, stmt string) (*gateway.TableData, error)
- type Gateway_Expecter
- func (_e *Gateway_Expecter) GetReceiptByTransactionHash(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Gateway_GetReceiptByTransactionHash_Call
- func (_e *Gateway_Expecter) GetTableMetadata(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Gateway_GetTableMetadata_Call
- func (_e *Gateway_Expecter) RunReadQuery(ctx interface{}, stmt interface{}) *Gateway_RunReadQuery_Call
- type Gateway_GetReceiptByTransactionHash_Call
- func (_c *Gateway_GetReceiptByTransactionHash_Call) Return(_a0 gateway.Receipt, _a1 bool, _a2 error) *Gateway_GetReceiptByTransactionHash_Call
- func (_c *Gateway_GetReceiptByTransactionHash_Call) Run(run func(_a0 context.Context, _a1 tableland.ChainID, _a2 common.Hash)) *Gateway_GetReceiptByTransactionHash_Call
- type Gateway_GetTableMetadata_Call
- type Gateway_RunReadQuery_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gateway ¶ added in v1.1.0
Gateway is an autogenerated mock type for the Gateway type
func NewGateway ¶ added in v1.1.0
func NewGateway(t mockConstructorTestingTNewGateway) *Gateway
NewGateway creates a new instance of Gateway. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Gateway) EXPECT ¶ added in v1.1.0
func (_m *Gateway) EXPECT() *Gateway_Expecter
func (*Gateway) GetReceiptByTransactionHash ¶ added in v1.1.0
func (_m *Gateway) GetReceiptByTransactionHash(_a0 context.Context, _a1 tableland.ChainID, _a2 common.Hash) (gateway.Receipt, bool, error)
GetReceiptByTransactionHash provides a mock function with given fields: _a0, _a1, _a2
type Gateway_Expecter ¶ added in v1.1.0
type Gateway_Expecter struct {
// contains filtered or unexported fields
}
func (*Gateway_Expecter) GetReceiptByTransactionHash ¶ added in v1.1.0
func (_e *Gateway_Expecter) GetReceiptByTransactionHash(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Gateway_GetReceiptByTransactionHash_Call
GetReceiptByTransactionHash is a helper method to define mock.On call
- _a0 context.Context
- _a1 tableland.ChainID
- _a2 common.Hash
func (*Gateway_Expecter) GetTableMetadata ¶ added in v1.1.0
func (_e *Gateway_Expecter) GetTableMetadata(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Gateway_GetTableMetadata_Call
GetTableMetadata is a helper method to define mock.On call
- _a0 context.Context
- _a1 tableland.ChainID
- _a2 tables.TableID
func (*Gateway_Expecter) RunReadQuery ¶ added in v1.1.0
func (_e *Gateway_Expecter) RunReadQuery(ctx interface{}, stmt interface{}) *Gateway_RunReadQuery_Call
RunReadQuery is a helper method to define mock.On call
- ctx context.Context
- stmt string
type Gateway_GetReceiptByTransactionHash_Call ¶ added in v1.1.0
Gateway_GetReceiptByTransactionHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReceiptByTransactionHash'
func (*Gateway_GetReceiptByTransactionHash_Call) Return ¶ added in v1.1.0
func (_c *Gateway_GetReceiptByTransactionHash_Call) Return(_a0 gateway.Receipt, _a1 bool, _a2 error) *Gateway_GetReceiptByTransactionHash_Call
func (*Gateway_GetReceiptByTransactionHash_Call) Run ¶ added in v1.1.0
func (_c *Gateway_GetReceiptByTransactionHash_Call) Run(run func(_a0 context.Context, _a1 tableland.ChainID, _a2 common.Hash)) *Gateway_GetReceiptByTransactionHash_Call
type Gateway_GetTableMetadata_Call ¶ added in v1.1.0
Gateway_GetTableMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTableMetadata'
func (*Gateway_GetTableMetadata_Call) Return ¶ added in v1.1.0
func (_c *Gateway_GetTableMetadata_Call) Return(_a0 gateway.TableMetadata, _a1 error) *Gateway_GetTableMetadata_Call
func (*Gateway_GetTableMetadata_Call) Run ¶ added in v1.1.0
func (_c *Gateway_GetTableMetadata_Call) Run(run func(_a0 context.Context, _a1 tableland.ChainID, _a2 tables.TableID)) *Gateway_GetTableMetadata_Call
type Gateway_RunReadQuery_Call ¶ added in v1.1.0
Gateway_RunReadQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunReadQuery'
func (*Gateway_RunReadQuery_Call) Return ¶ added in v1.1.0
func (_c *Gateway_RunReadQuery_Call) Return(_a0 *gateway.TableData, _a1 error) *Gateway_RunReadQuery_Call
func (*Gateway_RunReadQuery_Call) Run ¶ added in v1.1.0
func (_c *Gateway_RunReadQuery_Call) Run(run func(ctx context.Context, stmt string)) *Gateway_RunReadQuery_Call