Documentation ¶
Index ¶
- type AuthOnGetHeadlessSession
- type AuthOnRegister
- type AuthOnValidate
- type FromContextFn
- type MockAuthClient
- func (m MockAuthClient) GetHeadlessSession(_ context.Context, given *auth.GetHeadlessSessionRequest, _ ...grpc.CallOption) (*auth.HeadlessSession, error)
- func (m MockAuthClient) Register(ctx context.Context, given *auth.RegistrationRequest, _ ...grpc.CallOption) (*auth.Session, error)
- func (m MockAuthClient) Validate(ctx context.Context, _ *emptypb.Empty, _ ...grpc.CallOption) (*auth.WhoAmI, error)
- type MockAuthServer
- func (m MockAuthServer) GetHeadlessSession(ctx context.Context, req *auth.GetHeadlessSessionRequest) (*auth.HeadlessSession, error)
- func (m MockAuthServer) Register(ctx context.Context, req *auth.RegistrationRequest) (*auth.Session, error)
- func (m MockAuthServer) Validate(ctx context.Context, empty *emptypb.Empty) (*auth.WhoAmI, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOnGetHeadlessSession ¶ added in v0.1.25
type AuthOnGetHeadlessSession struct { Given *auth.GetHeadlessSessionRequest Found *auth.HeadlessSession Error error }
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 OnGetHeadlessSession []AuthOnGetHeadlessSession }
func (MockAuthClient) GetHeadlessSession ¶ added in v0.1.25
func (m MockAuthClient) GetHeadlessSession(_ context.Context, given *auth.GetHeadlessSessionRequest, _ ...grpc.CallOption) (*auth.HeadlessSession, error)
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) GetHeadlessSession ¶ added in v0.1.25
func (m MockAuthServer) GetHeadlessSession(ctx context.Context, req *auth.GetHeadlessSessionRequest) (*auth.HeadlessSession, error)
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.