Documentation
¶
Index ¶
- type Checker
- type Checker_Expecter
- type Checker_IsWhitelisted_Call
- func (_c *Checker_IsWhitelisted_Call) Return(_a0 bool, _a1 error) *Checker_IsWhitelisted_Call
- func (_c *Checker_IsWhitelisted_Call) Run(run func(ctx context.Context, evmAddress string)) *Checker_IsWhitelisted_Call
- func (_c *Checker_IsWhitelisted_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Checker_IsWhitelisted_Call
- type Manager
- type Manager_Add_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) Add(ctx interface{}, evmAddress interface{}, note interface{}) *Manager_Add_Call
- func (_e *Manager_Expecter) List(ctx interface{}, cursor interface{}, limit interface{}) *Manager_List_Call
- func (_e *Manager_Expecter) Remove(ctx interface{}, evmAddress interface{}) *Manager_Remove_Call
- type Manager_List_Call
- func (_c *Manager_List_Call) Return(_a0 *whitelist.Page, _a1 error) *Manager_List_Call
- func (_c *Manager_List_Call) Run(run func(ctx context.Context, cursor string, limit int)) *Manager_List_Call
- func (_c *Manager_List_Call) RunAndReturn(run func(context.Context, string, int) (*whitelist.Page, error)) *Manager_List_Call
- type Manager_Remove_Call
- type Store
- func (_m *Store) AddToWhitelist(ctx context.Context, evmAddress string, note string) error
- func (_m *Store) EXPECT() *Store_Expecter
- func (_m *Store) IsWhitelisted(ctx context.Context, evmAddress string) (bool, error)
- func (_m *Store) ListWhitelist(ctx context.Context, cursor string, limit int) ([]*user.WhitelistEntry, error)
- func (_m *Store) RemoveFromWhitelist(ctx context.Context, evmAddress string) (bool, error)
- type Store_AddToWhitelist_Call
- func (_c *Store_AddToWhitelist_Call) Return(_a0 error) *Store_AddToWhitelist_Call
- func (_c *Store_AddToWhitelist_Call) Run(run func(ctx context.Context, evmAddress string, note string)) *Store_AddToWhitelist_Call
- func (_c *Store_AddToWhitelist_Call) RunAndReturn(run func(context.Context, string, string) error) *Store_AddToWhitelist_Call
- type Store_Expecter
- func (_e *Store_Expecter) AddToWhitelist(ctx interface{}, evmAddress interface{}, note interface{}) *Store_AddToWhitelist_Call
- func (_e *Store_Expecter) IsWhitelisted(ctx interface{}, evmAddress interface{}) *Store_IsWhitelisted_Call
- func (_e *Store_Expecter) ListWhitelist(ctx interface{}, cursor interface{}, limit interface{}) *Store_ListWhitelist_Call
- func (_e *Store_Expecter) RemoveFromWhitelist(ctx interface{}, evmAddress interface{}) *Store_RemoveFromWhitelist_Call
- type Store_IsWhitelisted_Call
- func (_c *Store_IsWhitelisted_Call) Return(_a0 bool, _a1 error) *Store_IsWhitelisted_Call
- func (_c *Store_IsWhitelisted_Call) Run(run func(ctx context.Context, evmAddress string)) *Store_IsWhitelisted_Call
- func (_c *Store_IsWhitelisted_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Store_IsWhitelisted_Call
- type Store_ListWhitelist_Call
- func (_c *Store_ListWhitelist_Call) Return(_a0 []*user.WhitelistEntry, _a1 error) *Store_ListWhitelist_Call
- func (_c *Store_ListWhitelist_Call) Run(run func(ctx context.Context, cursor string, limit int)) *Store_ListWhitelist_Call
- func (_c *Store_ListWhitelist_Call) RunAndReturn(run func(context.Context, string, int) ([]*user.WhitelistEntry, error)) *Store_ListWhitelist_Call
- type Store_RemoveFromWhitelist_Call
- func (_c *Store_RemoveFromWhitelist_Call) Return(removed bool, err error) *Store_RemoveFromWhitelist_Call
- func (_c *Store_RemoveFromWhitelist_Call) Run(run func(ctx context.Context, evmAddress string)) *Store_RemoveFromWhitelist_Call
- func (_c *Store_RemoveFromWhitelist_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Store_RemoveFromWhitelist_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker is an autogenerated mock type for the Checker type
func NewChecker ¶
NewChecker creates a new instance of Checker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Checker) EXPECT ¶
func (_m *Checker) EXPECT() *Checker_Expecter
type Checker_Expecter ¶
type Checker_Expecter struct {
// contains filtered or unexported fields
}
func (*Checker_Expecter) IsWhitelisted ¶
func (_e *Checker_Expecter) IsWhitelisted(ctx interface{}, evmAddress interface{}) *Checker_IsWhitelisted_Call
IsWhitelisted is a helper method to define mock.On call
- ctx context.Context
- evmAddress string
type Checker_IsWhitelisted_Call ¶
Checker_IsWhitelisted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsWhitelisted'
func (*Checker_IsWhitelisted_Call) Return ¶
func (_c *Checker_IsWhitelisted_Call) Return(_a0 bool, _a1 error) *Checker_IsWhitelisted_Call
func (*Checker_IsWhitelisted_Call) Run ¶
func (_c *Checker_IsWhitelisted_Call) Run(run func(ctx context.Context, evmAddress string)) *Checker_IsWhitelisted_Call
func (*Checker_IsWhitelisted_Call) RunAndReturn ¶
func (_c *Checker_IsWhitelisted_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Checker_IsWhitelisted_Call
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func NewManager ¶
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manager) EXPECT ¶
func (_m *Manager) EXPECT() *Manager_Expecter
type Manager_Add_Call ¶
Manager_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Manager_Add_Call) Return ¶
func (_c *Manager_Add_Call) Return(_a0 error) *Manager_Add_Call
func (*Manager_Add_Call) Run ¶
func (_c *Manager_Add_Call) Run(run func(ctx context.Context, evmAddress string, note string)) *Manager_Add_Call
func (*Manager_Add_Call) RunAndReturn ¶
func (_c *Manager_Add_Call) RunAndReturn(run func(context.Context, string, string) error) *Manager_Add_Call
type Manager_Expecter ¶
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) Add ¶
func (_e *Manager_Expecter) Add(ctx interface{}, evmAddress interface{}, note interface{}) *Manager_Add_Call
Add is a helper method to define mock.On call
- ctx context.Context
- evmAddress string
- note string
func (*Manager_Expecter) List ¶
func (_e *Manager_Expecter) List(ctx interface{}, cursor interface{}, limit interface{}) *Manager_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- cursor string
- limit int
func (*Manager_Expecter) Remove ¶
func (_e *Manager_Expecter) Remove(ctx interface{}, evmAddress interface{}) *Manager_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- evmAddress string
type Manager_List_Call ¶
Manager_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Manager_List_Call) Return ¶
func (_c *Manager_List_Call) Return(_a0 *whitelist.Page, _a1 error) *Manager_List_Call
func (*Manager_List_Call) Run ¶
func (_c *Manager_List_Call) Run(run func(ctx context.Context, cursor string, limit int)) *Manager_List_Call
func (*Manager_List_Call) RunAndReturn ¶
func (_c *Manager_List_Call) RunAndReturn(run func(context.Context, string, int) (*whitelist.Page, error)) *Manager_List_Call
type Manager_Remove_Call ¶
Manager_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*Manager_Remove_Call) Return ¶
func (_c *Manager_Remove_Call) Return(_a0 error) *Manager_Remove_Call
func (*Manager_Remove_Call) Run ¶
func (_c *Manager_Remove_Call) Run(run func(ctx context.Context, evmAddress string)) *Manager_Remove_Call
func (*Manager_Remove_Call) RunAndReturn ¶
func (_c *Manager_Remove_Call) RunAndReturn(run func(context.Context, string) error) *Manager_Remove_Call
type Store ¶
Store is an autogenerated mock type for the Store type
func NewStore ¶
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. The first argument is typically a *testing.T value.
func (*Store) AddToWhitelist ¶
AddToWhitelist provides a mock function with given fields: ctx, evmAddress, note
func (*Store) EXPECT ¶
func (_m *Store) EXPECT() *Store_Expecter
func (*Store) IsWhitelisted ¶
IsWhitelisted provides a mock function with given fields: ctx, evmAddress
func (*Store) ListWhitelist ¶
func (_m *Store) ListWhitelist(ctx context.Context, cursor string, limit int) ([]*user.WhitelistEntry, error)
ListWhitelist provides a mock function with given fields: ctx, cursor, limit
type Store_AddToWhitelist_Call ¶
Store_AddToWhitelist_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddToWhitelist'
func (*Store_AddToWhitelist_Call) Return ¶
func (_c *Store_AddToWhitelist_Call) Return(_a0 error) *Store_AddToWhitelist_Call
func (*Store_AddToWhitelist_Call) Run ¶
func (_c *Store_AddToWhitelist_Call) Run(run func(ctx context.Context, evmAddress string, note string)) *Store_AddToWhitelist_Call
func (*Store_AddToWhitelist_Call) RunAndReturn ¶
func (_c *Store_AddToWhitelist_Call) RunAndReturn(run func(context.Context, string, string) error) *Store_AddToWhitelist_Call
type Store_Expecter ¶
type Store_Expecter struct {
// contains filtered or unexported fields
}
func (*Store_Expecter) AddToWhitelist ¶
func (_e *Store_Expecter) AddToWhitelist(ctx interface{}, evmAddress interface{}, note interface{}) *Store_AddToWhitelist_Call
AddToWhitelist is a helper method to define mock.On call
- ctx context.Context
- evmAddress string
- note string
func (*Store_Expecter) IsWhitelisted ¶
func (_e *Store_Expecter) IsWhitelisted(ctx interface{}, evmAddress interface{}) *Store_IsWhitelisted_Call
IsWhitelisted is a helper method to define mock.On call
- ctx context.Context
- evmAddress string
func (*Store_Expecter) ListWhitelist ¶
func (_e *Store_Expecter) ListWhitelist(ctx interface{}, cursor interface{}, limit interface{}) *Store_ListWhitelist_Call
ListWhitelist is a helper method to define mock.On call
- ctx context.Context
- cursor string
- limit int
func (*Store_Expecter) RemoveFromWhitelist ¶
func (_e *Store_Expecter) RemoveFromWhitelist(ctx interface{}, evmAddress interface{}) *Store_RemoveFromWhitelist_Call
RemoveFromWhitelist is a helper method to define mock.On call
- ctx context.Context
- evmAddress string
type Store_IsWhitelisted_Call ¶
Store_IsWhitelisted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsWhitelisted'
func (*Store_IsWhitelisted_Call) Return ¶
func (_c *Store_IsWhitelisted_Call) Return(_a0 bool, _a1 error) *Store_IsWhitelisted_Call
func (*Store_IsWhitelisted_Call) Run ¶
func (_c *Store_IsWhitelisted_Call) Run(run func(ctx context.Context, evmAddress string)) *Store_IsWhitelisted_Call
func (*Store_IsWhitelisted_Call) RunAndReturn ¶
func (_c *Store_IsWhitelisted_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Store_IsWhitelisted_Call
type Store_ListWhitelist_Call ¶
Store_ListWhitelist_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListWhitelist'
func (*Store_ListWhitelist_Call) Return ¶
func (_c *Store_ListWhitelist_Call) Return(_a0 []*user.WhitelistEntry, _a1 error) *Store_ListWhitelist_Call
func (*Store_ListWhitelist_Call) Run ¶
func (_c *Store_ListWhitelist_Call) Run(run func(ctx context.Context, cursor string, limit int)) *Store_ListWhitelist_Call
func (*Store_ListWhitelist_Call) RunAndReturn ¶
func (_c *Store_ListWhitelist_Call) RunAndReturn(run func(context.Context, string, int) ([]*user.WhitelistEntry, error)) *Store_ListWhitelist_Call
type Store_RemoveFromWhitelist_Call ¶
Store_RemoveFromWhitelist_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveFromWhitelist'
func (*Store_RemoveFromWhitelist_Call) Return ¶
func (_c *Store_RemoveFromWhitelist_Call) Return(removed bool, err error) *Store_RemoveFromWhitelist_Call
func (*Store_RemoveFromWhitelist_Call) Run ¶
func (_c *Store_RemoveFromWhitelist_Call) Run(run func(ctx context.Context, evmAddress string)) *Store_RemoveFromWhitelist_Call
func (*Store_RemoveFromWhitelist_Call) RunAndReturn ¶
func (_c *Store_RemoveFromWhitelist_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Store_RemoveFromWhitelist_Call