Documentation
¶
Index ¶
- type Issuer
- type Issuer_Expecter
- type Issuer_Issue_Call
- func (_c *Issuer_Issue_Call) Return(_a0 string, _a1 time.Time, _a2 error) *Issuer_Issue_Call
- func (_c *Issuer_Issue_Call) Run(run func(evmAddress string, cantonPartyID string)) *Issuer_Issue_Call
- func (_c *Issuer_Issue_Call) RunAndReturn(run func(string, string) (string, time.Time, error)) *Issuer_Issue_Call
- type Issuer_JWKS_Call
- type NonceStore
- type NonceStore_Consume_Call
- type NonceStore_Expecter
- type NonceStore_Issue_Call
- type Service
- type Service_Expecter
- type Service_JWKS_Call
- type Service_Login_Call
- func (_c *Service_Login_Call) Return(_a0 *auth.LoginResponse, _a1 error) *Service_Login_Call
- func (_c *Service_Login_Call) Run(run func(ctx context.Context, message string, signature string)) *Service_Login_Call
- func (_c *Service_Login_Call) RunAndReturn(run func(context.Context, string, string) (*auth.LoginResponse, error)) *Service_Login_Call
- type Service_Nonce_Call
- type UserLookup
- type UserLookup_Expecter
- type UserLookup_GetUserByEVMAddress_Call
- func (_c *UserLookup_GetUserByEVMAddress_Call) Return(_a0 *user.User, _a1 error) *UserLookup_GetUserByEVMAddress_Call
- func (_c *UserLookup_GetUserByEVMAddress_Call) Run(run func(ctx context.Context, evmAddress string)) *UserLookup_GetUserByEVMAddress_Call
- func (_c *UserLookup_GetUserByEVMAddress_Call) RunAndReturn(run func(context.Context, string) (*user.User, error)) *UserLookup_GetUserByEVMAddress_Call
- type Verifier
- type Verifier_Expecter
- type Verifier_Verify_Call
- func (_c *Verifier_Verify_Call) Return(_a0 common.Address, _a1 string, _a2 error) *Verifier_Verify_Call
- func (_c *Verifier_Verify_Call) Run(run func(message string, signature string)) *Verifier_Verify_Call
- func (_c *Verifier_Verify_Call) RunAndReturn(run func(string, string) (common.Address, string, error)) *Verifier_Verify_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issuer ¶
Issuer is an autogenerated mock type for the Issuer type
func NewIssuer ¶
NewIssuer creates a new instance of Issuer. 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 (*Issuer) EXPECT ¶
func (_m *Issuer) EXPECT() *Issuer_Expecter
type Issuer_Expecter ¶
type Issuer_Expecter struct {
// contains filtered or unexported fields
}
func (*Issuer_Expecter) Issue ¶
func (_e *Issuer_Expecter) Issue(evmAddress interface{}, cantonPartyID interface{}) *Issuer_Issue_Call
Issue is a helper method to define mock.On call
- evmAddress string
- cantonPartyID string
func (*Issuer_Expecter) JWKS ¶
func (_e *Issuer_Expecter) JWKS() *Issuer_JWKS_Call
JWKS is a helper method to define mock.On call
type Issuer_Issue_Call ¶
Issuer_Issue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Issue'
func (*Issuer_Issue_Call) Return ¶
func (_c *Issuer_Issue_Call) Return(_a0 string, _a1 time.Time, _a2 error) *Issuer_Issue_Call
func (*Issuer_Issue_Call) Run ¶
func (_c *Issuer_Issue_Call) Run(run func(evmAddress string, cantonPartyID string)) *Issuer_Issue_Call
func (*Issuer_Issue_Call) RunAndReturn ¶
func (_c *Issuer_Issue_Call) RunAndReturn(run func(string, string) (string, time.Time, error)) *Issuer_Issue_Call
type Issuer_JWKS_Call ¶
Issuer_JWKS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JWKS'
func (*Issuer_JWKS_Call) Return ¶
func (_c *Issuer_JWKS_Call) Return(_a0 jwt.JWKS) *Issuer_JWKS_Call
func (*Issuer_JWKS_Call) Run ¶
func (_c *Issuer_JWKS_Call) Run(run func()) *Issuer_JWKS_Call
func (*Issuer_JWKS_Call) RunAndReturn ¶
func (_c *Issuer_JWKS_Call) RunAndReturn(run func() jwt.JWKS) *Issuer_JWKS_Call
type NonceStore ¶
NonceStore is an autogenerated mock type for the NonceStore type
func NewNonceStore ¶
func NewNonceStore(t interface {
mock.TestingT
Cleanup(func())
}) *NonceStore
NewNonceStore creates a new instance of NonceStore. 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 (*NonceStore) Consume ¶
func (_m *NonceStore) Consume(nonce string) bool
Consume provides a mock function with given fields: nonce
func (*NonceStore) EXPECT ¶
func (_m *NonceStore) EXPECT() *NonceStore_Expecter
type NonceStore_Consume_Call ¶
NonceStore_Consume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Consume'
func (*NonceStore_Consume_Call) Return ¶
func (_c *NonceStore_Consume_Call) Return(_a0 bool) *NonceStore_Consume_Call
func (*NonceStore_Consume_Call) Run ¶
func (_c *NonceStore_Consume_Call) Run(run func(nonce string)) *NonceStore_Consume_Call
func (*NonceStore_Consume_Call) RunAndReturn ¶
func (_c *NonceStore_Consume_Call) RunAndReturn(run func(string) bool) *NonceStore_Consume_Call
type NonceStore_Expecter ¶
type NonceStore_Expecter struct {
// contains filtered or unexported fields
}
func (*NonceStore_Expecter) Consume ¶
func (_e *NonceStore_Expecter) Consume(nonce interface{}) *NonceStore_Consume_Call
Consume is a helper method to define mock.On call
- nonce string
func (*NonceStore_Expecter) Issue ¶
func (_e *NonceStore_Expecter) Issue(address interface{}) *NonceStore_Issue_Call
Issue is a helper method to define mock.On call
- address string
type NonceStore_Issue_Call ¶
NonceStore_Issue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Issue'
func (*NonceStore_Issue_Call) Return ¶
func (_c *NonceStore_Issue_Call) Return(_a0 string, _a1 error) *NonceStore_Issue_Call
func (*NonceStore_Issue_Call) Run ¶
func (_c *NonceStore_Issue_Call) Run(run func(address string)) *NonceStore_Issue_Call
func (*NonceStore_Issue_Call) RunAndReturn ¶
func (_c *NonceStore_Issue_Call) RunAndReturn(run func(string) (string, error)) *NonceStore_Issue_Call
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) EXPECT ¶
func (_m *Service) EXPECT() *Service_Expecter
type Service_Expecter ¶
type Service_Expecter struct {
// contains filtered or unexported fields
}
func (*Service_Expecter) JWKS ¶
func (_e *Service_Expecter) JWKS() *Service_JWKS_Call
JWKS is a helper method to define mock.On call
func (*Service_Expecter) Login ¶
func (_e *Service_Expecter) Login(ctx interface{}, message interface{}, signature interface{}) *Service_Login_Call
Login is a helper method to define mock.On call
- ctx context.Context
- message string
- signature string
func (*Service_Expecter) Nonce ¶
func (_e *Service_Expecter) Nonce(address interface{}) *Service_Nonce_Call
Nonce is a helper method to define mock.On call
- address string
type Service_JWKS_Call ¶
Service_JWKS_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'JWKS'
func (*Service_JWKS_Call) Return ¶
func (_c *Service_JWKS_Call) Return(_a0 jwt.JWKS) *Service_JWKS_Call
func (*Service_JWKS_Call) Run ¶
func (_c *Service_JWKS_Call) Run(run func()) *Service_JWKS_Call
func (*Service_JWKS_Call) RunAndReturn ¶
func (_c *Service_JWKS_Call) RunAndReturn(run func() jwt.JWKS) *Service_JWKS_Call
type Service_Login_Call ¶
Service_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'
func (*Service_Login_Call) Return ¶
func (_c *Service_Login_Call) Return(_a0 *auth.LoginResponse, _a1 error) *Service_Login_Call
func (*Service_Login_Call) Run ¶
func (_c *Service_Login_Call) Run(run func(ctx context.Context, message string, signature string)) *Service_Login_Call
func (*Service_Login_Call) RunAndReturn ¶
func (_c *Service_Login_Call) RunAndReturn(run func(context.Context, string, string) (*auth.LoginResponse, error)) *Service_Login_Call
type Service_Nonce_Call ¶
Service_Nonce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Nonce'
func (*Service_Nonce_Call) Return ¶
func (_c *Service_Nonce_Call) Return(_a0 string, _a1 error) *Service_Nonce_Call
func (*Service_Nonce_Call) Run ¶
func (_c *Service_Nonce_Call) Run(run func(address string)) *Service_Nonce_Call
func (*Service_Nonce_Call) RunAndReturn ¶
func (_c *Service_Nonce_Call) RunAndReturn(run func(string) (string, error)) *Service_Nonce_Call
type UserLookup ¶
UserLookup is an autogenerated mock type for the UserLookup type
func NewUserLookup ¶
func NewUserLookup(t interface {
mock.TestingT
Cleanup(func())
}) *UserLookup
NewUserLookup creates a new instance of UserLookup. 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 (*UserLookup) EXPECT ¶
func (_m *UserLookup) EXPECT() *UserLookup_Expecter
func (*UserLookup) GetUserByEVMAddress ¶
func (_m *UserLookup) GetUserByEVMAddress(ctx context.Context, evmAddress string) (*user.User, error)
GetUserByEVMAddress provides a mock function with given fields: ctx, evmAddress
type UserLookup_Expecter ¶
type UserLookup_Expecter struct {
// contains filtered or unexported fields
}
func (*UserLookup_Expecter) GetUserByEVMAddress ¶
func (_e *UserLookup_Expecter) GetUserByEVMAddress(ctx interface{}, evmAddress interface{}) *UserLookup_GetUserByEVMAddress_Call
GetUserByEVMAddress is a helper method to define mock.On call
- ctx context.Context
- evmAddress string
type UserLookup_GetUserByEVMAddress_Call ¶
UserLookup_GetUserByEVMAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByEVMAddress'
func (*UserLookup_GetUserByEVMAddress_Call) Return ¶
func (_c *UserLookup_GetUserByEVMAddress_Call) Return(_a0 *user.User, _a1 error) *UserLookup_GetUserByEVMAddress_Call
func (*UserLookup_GetUserByEVMAddress_Call) Run ¶
func (_c *UserLookup_GetUserByEVMAddress_Call) Run(run func(ctx context.Context, evmAddress string)) *UserLookup_GetUserByEVMAddress_Call
func (*UserLookup_GetUserByEVMAddress_Call) RunAndReturn ¶
func (_c *UserLookup_GetUserByEVMAddress_Call) RunAndReturn(run func(context.Context, string) (*user.User, error)) *UserLookup_GetUserByEVMAddress_Call
type Verifier ¶
Verifier is an autogenerated mock type for the Verifier type
func NewVerifier ¶
NewVerifier creates a new instance of Verifier. 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 (*Verifier) EXPECT ¶
func (_m *Verifier) EXPECT() *Verifier_Expecter
type Verifier_Expecter ¶
type Verifier_Expecter struct {
// contains filtered or unexported fields
}
func (*Verifier_Expecter) Verify ¶
func (_e *Verifier_Expecter) Verify(message interface{}, signature interface{}) *Verifier_Verify_Call
Verify is a helper method to define mock.On call
- message string
- signature string
type Verifier_Verify_Call ¶
Verifier_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'
func (*Verifier_Verify_Call) Return ¶
func (_c *Verifier_Verify_Call) Return(_a0 common.Address, _a1 string, _a2 error) *Verifier_Verify_Call
func (*Verifier_Verify_Call) Run ¶
func (_c *Verifier_Verify_Call) Run(run func(message string, signature string)) *Verifier_Verify_Call
func (*Verifier_Verify_Call) RunAndReturn ¶
func (_c *Verifier_Verify_Call) RunAndReturn(run func(string, string) (common.Address, string, error)) *Verifier_Verify_Call