Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOnRegister ¶
type AuthOnRegister struct { Given *auth.RegistrationRequest Created *auth.Session CheckContext FromContextFn Error error }
type AuthOnValidate ¶
type AuthOnValidate struct { Given FromContextFn Validate *auth.WhoAmI Error error }
type FromContextFn ¶
type MockAuthClient ¶
type MockAuthClient struct { OnValidate []AuthOnValidate OnRegister []AuthOnRegister }
func (MockAuthClient) Register ¶
func (m MockAuthClient) Register(ctx context.Context, given *auth.RegistrationRequest, _ ...grpc.CallOption) (*auth.Session, error)
type MockAuthServer ¶
type MockAuthServer struct { auth.UnimplementedAuthServer Client MockAuthClient }
func (MockAuthServer) Register ¶
func (m MockAuthServer) Register(ctx context.Context, req *auth.RegistrationRequest) (*auth.Session, error)
Click to show internal directories.
Click to hide internal directories.