Documentation ¶
Index ¶
- type AuthClient
- type AuthMiddleware
- type MockAuthClient
- type MockAuthClient_Expecter
- type MockAuthClient_InjectTokenCtx_Call
- func (_c *MockAuthClient_InjectTokenCtx_Call) Return(_a0 context.Context, _a1 error) *MockAuthClient_InjectTokenCtx_Call
- func (_c *MockAuthClient_InjectTokenCtx_Call) Run(run func(ctx context.Context, header http.Header, spec connect.Spec)) *MockAuthClient_InjectTokenCtx_Call
- func (_c *MockAuthClient_InjectTokenCtx_Call) RunAndReturn(run func(context.Context, http.Header, connect.Spec) (context.Context, error)) *MockAuthClient_InjectTokenCtx_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
type AuthMiddleware ¶
type AuthMiddleware struct {
// contains filtered or unexported fields
}
func New ¶
func New( jwtClient AuthClient, apiKeyClient AuthClient, ) *AuthMiddleware
type MockAuthClient ¶
MockAuthClient is an autogenerated mock type for the AuthClient type
func NewMockAuthClient ¶
func NewMockAuthClient(t interface { mock.TestingT Cleanup(func()) }) *MockAuthClient
NewMockAuthClient creates a new instance of MockAuthClient. 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 (*MockAuthClient) EXPECT ¶
func (_m *MockAuthClient) EXPECT() *MockAuthClient_Expecter
type MockAuthClient_Expecter ¶
type MockAuthClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthClient_Expecter) InjectTokenCtx ¶
func (_e *MockAuthClient_Expecter) InjectTokenCtx(ctx interface{}, header interface{}, spec interface{}) *MockAuthClient_InjectTokenCtx_Call
InjectTokenCtx is a helper method to define mock.On call
- ctx context.Context
- header http.Header
- spec connect.Spec
type MockAuthClient_InjectTokenCtx_Call ¶
MockAuthClient_InjectTokenCtx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InjectTokenCtx'
func (*MockAuthClient_InjectTokenCtx_Call) Return ¶
func (_c *MockAuthClient_InjectTokenCtx_Call) Return(_a0 context.Context, _a1 error) *MockAuthClient_InjectTokenCtx_Call
func (*MockAuthClient_InjectTokenCtx_Call) Run ¶
func (_c *MockAuthClient_InjectTokenCtx_Call) Run(run func(ctx context.Context, header http.Header, spec connect.Spec)) *MockAuthClient_InjectTokenCtx_Call
func (*MockAuthClient_InjectTokenCtx_Call) RunAndReturn ¶
Click to show internal directories.
Click to hide internal directories.