Documentation
¶
Overview ¶
Package handler is a generated GoMock package.
Package handler is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(port int)
Types ¶
type AuthHandler ¶
type AuthHandler struct {
GoogleService GoogleService
}
func (*AuthHandler) ServeHTTP ¶
func (h *AuthHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type AuthHandlerBuilder ¶
type AuthHandlerBuilder struct {
// contains filtered or unexported fields
}
func NewAuthHandlerBuilder ¶
func NewAuthHandlerBuilder() *AuthHandlerBuilder
func (*AuthHandlerBuilder) Build ¶
func (b *AuthHandlerBuilder) Build() *AuthHandler
func (*AuthHandlerBuilder) WithGoogleService ¶
func (b *AuthHandlerBuilder) WithGoogleService(googleService GoogleService) *AuthHandlerBuilder
type DefaultGoogleServiceImpl ¶
type DefaultGoogleServiceImpl struct {
GoogleService
}
func (*DefaultGoogleServiceImpl) FindDefaultCredentials ¶
func (s *DefaultGoogleServiceImpl) FindDefaultCredentials(ctx context.Context, scopes ...string) (*google.Credentials, error)
type GoogleService ¶
type MockGoogleService ¶
type MockGoogleService struct {
// contains filtered or unexported fields
}
MockGoogleService is a mock of GoogleService interface.
func NewMockGoogleService ¶
func NewMockGoogleService(ctrl *gomock.Controller) *MockGoogleService
NewMockGoogleService creates a new mock instance.
func (*MockGoogleService) EXPECT ¶
func (m *MockGoogleService) EXPECT() *MockGoogleServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGoogleService) FindDefaultCredentials ¶
func (m *MockGoogleService) FindDefaultCredentials(ctx context.Context, scopes ...string) (*google.Credentials, error)
FindDefaultCredentials mocks base method.
type MockGoogleServiceMockRecorder ¶
type MockGoogleServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockGoogleServiceMockRecorder is the mock recorder for MockGoogleService.
func (*MockGoogleServiceMockRecorder) FindDefaultCredentials ¶
func (mr *MockGoogleServiceMockRecorder) FindDefaultCredentials(ctx interface{}, scopes ...interface{}) *gomock.Call
FindDefaultCredentials indicates an expected call of FindDefaultCredentials.
type MockTokenSource ¶
type MockTokenSource struct {
// contains filtered or unexported fields
}
MockTokenSource is a mock of TokenSource interface.
func NewMockTokenSource ¶
func NewMockTokenSource(ctrl *gomock.Controller) *MockTokenSource
NewMockTokenSource creates a new mock instance.
func (*MockTokenSource) EXPECT ¶
func (m *MockTokenSource) EXPECT() *MockTokenSourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTokenSourceMockRecorder ¶
type MockTokenSourceMockRecorder struct {
// contains filtered or unexported fields
}
MockTokenSourceMockRecorder is the mock recorder for MockTokenSource.
func (*MockTokenSourceMockRecorder) Token ¶
func (mr *MockTokenSourceMockRecorder) Token() *gomock.Call
Token indicates an expected call of Token.