service

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthTokenManager

type AuthTokenManager interface {
	CreateTokenSet(ctx context.Context, appUser userD.AppUserModel, organization userD.OrganizationModel) (*TokenSet, error)
	RefreshToken(ctx context.Context, tokenString string) (string, error)
}

type GoogleAuthClient

type GoogleAuthClient interface {
	RetrieveAccessToken(ctx context.Context, code string) (*GoogleAuthResponse, error)
	RetrieveUserInfo(ctx context.Context, googleAuthResponse *GoogleAuthResponse) (*GoogleUserInfo, error)
}

type GoogleAuthResponse

type GoogleAuthResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

type GoogleUserInfo

type GoogleUserInfo struct {
	Email string `json:"email"`
	Name  string `json:"name"`
}

type TokenSet

type TokenSet struct {
	AccessToken  string
	RefreshToken string
}

type Transaction

type Transaction interface {
	Do(ctx context.Context, fn func(rf userS.RepositoryFactory) error) error
}

type UnauthorizedError

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

func NewUnauthorizedError

func NewUnauthorizedError(message string) *UnauthorizedError

func (*UnauthorizedError) Error

func (e *UnauthorizedError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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