handler

package
v0.5.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2025 License: MIT Imports: 12 Imported by: 0

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 GoogleService interface {
	FindDefaultCredentials(ctx context.Context, scopes ...string) (*google.Credentials, error)
}

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTokenSource) Token

func (m *MockTokenSource) Token() (*oauth2.Token, error)

Token mocks base method.

type MockTokenSourceMockRecorder

type MockTokenSourceMockRecorder struct {
	// contains filtered or unexported fields
}

MockTokenSourceMockRecorder is the mock recorder for MockTokenSource.

func (*MockTokenSourceMockRecorder) Token

Token indicates an expected call of Token.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL