Documentation ¶
Overview ¶
Package adminGoogle 管理者用Google
Package adminGoogle is a generated GoMock package.
Index ¶
- type AdminGoogleAuthRepository
- type AdminGoogleToken
- type AdminGoogleTokenInfo
- type AdminGoogleURL
- type MockAdminGoogleAuthRepository
- func (m *MockAdminGoogleAuthRepository) EXPECT() *MockAdminGoogleAuthRepositoryMockRecorder
- func (m *MockAdminGoogleAuthRepository) GetAdminGoogleToken(ctx context.Context, code string) (*AdminGoogleToken, error)
- func (m *MockAdminGoogleAuthRepository) GetAdminGoogleTokenInfo(ctx context.Context, accessToken string) (*AdminGoogleTokenInfo, error)
- func (m *MockAdminGoogleAuthRepository) GetAdminGoogleUrl() (*AdminGoogleURL, error)
- func (m *MockAdminGoogleAuthRepository) RefreshAdminGoogleToken(ctx context.Context, refreshToken string) (*AdminGoogleToken, error)
- type MockAdminGoogleAuthRepositoryMockRecorder
- func (mr *MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleToken(ctx, code interface{}) *gomock.Call
- func (mr *MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleTokenInfo(ctx, accessToken interface{}) *gomock.Call
- func (mr *MockAdminGoogleAuthRepositoryMockRecorder) GetAdminGoogleUrl() *gomock.Call
- func (mr *MockAdminGoogleAuthRepositoryMockRecorder) RefreshAdminGoogleToken(ctx, refreshToken interface{}) *gomock.Call
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 ¶
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 ¶
func (m *MockAdminGoogleAuthRepository) EXPECT() *MockAdminGoogleAuthRepositoryMockRecorder
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.