adminGoogle

package
v0.0.0-...-4834045 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package adminGoogle 管理者用Google

Package adminGoogle is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminGoogleAuthRepository

type AdminGoogleAuthRepository interface {
	GetAdminGoogleUrl() (*AdminGoogleURL, error)
	GetAdminGoogleToken(ctx context.Context, code string) (*AdminGoogleToken, error)
	GetAdminGoogleTokenInfo(ctx context.Context, accessToken string) (*AdminGoogleTokenInfo, error)
	RefreshAdminGoogleToken(ctx context.Context, refreshToken string) (*AdminGoogleToken, error)
}

type AdminGoogleToken

type AdminGoogleToken struct {
	AccessToken  string
	RefreshToken string
	ExpiredAt    time.Time
}

func SetAdminGoogleToken

func SetAdminGoogleToken(accessToken, refreshToken string, expiredAt time.Time) *AdminGoogleToken

type AdminGoogleTokenInfo

type AdminGoogleTokenInfo struct {
	UserId        string
	Email         string
	VerifiedEmail bool
	ExpiresIn     int64
	IssuedTo      string
	Scope         string
}

func SetAdminGoogleTokenInfo

func SetAdminGoogleTokenInfo(userId, email string, verifiedEmail bool, expiresIn int64, issuedTo, scope string) *AdminGoogleTokenInfo

type AdminGoogleURL

type AdminGoogleURL struct {
	URL string
}

func SetAdminGoogleURL

func SetAdminGoogleURL(url string) *AdminGoogleURL

type MockAdminGoogleAuthRepository

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

MockAdminGoogleAuthRepository is a mock of AdminGoogleAuthRepository interface.

func NewMockAdminGoogleAuthRepository

func NewMockAdminGoogleAuthRepository(ctrl *gomock.Controller) *MockAdminGoogleAuthRepository

NewMockAdminGoogleAuthRepository creates a new mock instance.

func (*MockAdminGoogleAuthRepository) EXPECT

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

func (*MockAdminGoogleAuthRepository) GetAdminGoogleToken

func (m *MockAdminGoogleAuthRepository) GetAdminGoogleToken(ctx context.Context, code string) (*AdminGoogleToken, error)

GetAdminGoogleToken mocks base method.

func (*MockAdminGoogleAuthRepository) GetAdminGoogleTokenInfo

func (m *MockAdminGoogleAuthRepository) GetAdminGoogleTokenInfo(ctx context.Context, accessToken string) (*AdminGoogleTokenInfo, error)

GetAdminGoogleTokenInfo mocks base method.

func (*MockAdminGoogleAuthRepository) GetAdminGoogleUrl

func (m *MockAdminGoogleAuthRepository) GetAdminGoogleUrl() (*AdminGoogleURL, error)

GetAdminGoogleUrl mocks base method.

func (*MockAdminGoogleAuthRepository) RefreshAdminGoogleToken

func (m *MockAdminGoogleAuthRepository) RefreshAdminGoogleToken(ctx context.Context, refreshToken string) (*AdminGoogleToken, error)

RefreshAdminGoogleToken mocks base method.

type MockAdminGoogleAuthRepositoryMockRecorder

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

MockAdminGoogleAuthRepositoryMockRecorder is the mock recorder for MockAdminGoogleAuthRepository.

func (*MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleToken

func (mr *MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleToken(ctx, code interface{}) *gomock.Call

GetAdminGoogleToken indicates an expected call of GetAdminGoogleToken.

func (*MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleTokenInfo

func (mr *MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleTokenInfo(ctx, accessToken interface{}) *gomock.Call

GetAdminGoogleTokenInfo indicates an expected call of GetAdminGoogleTokenInfo.

func (*MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleUrl

func (mr *MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleUrl() *gomock.Call

GetAdminGoogleUrl indicates an expected call of GetAdminGoogleUrl.

func (*MockAdminGoogleAuthRepositoryMockRecorder) RefreshAdminGoogleToken

func (mr *MockAdminGoogleAuthRepositoryMockRecorder) RefreshAdminGoogleToken(ctx, refreshToken interface{}) *gomock.Call

RefreshAdminGoogleToken indicates an expected call of RefreshAdminGoogleToken.

Jump to

Keyboard shortcuts

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