usecase

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthUseCase

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

func NewAuthUseCase

func NewAuthUseCase(repo domain.AuthRepository, jwt domain.JwtGenerator) *AuthUseCase

func (*AuthUseCase) CheckAuth added in v0.1.6

func (a *AuthUseCase) CheckAuth(ctx context.Context, uid string) (existed bool, err error)

func (*AuthUseCase) CheckAuthWithProvider added in v0.1.6

func (a *AuthUseCase) CheckAuthWithProvider(ctx context.Context, provider domain.Provider, token string) (existed bool, err error)

func (*AuthUseCase) Delete added in v0.1.11

func (a *AuthUseCase) Delete(ctx context.Context, id string) error

func (*AuthUseCase) List added in v0.1.29

func (*AuthUseCase) SignIn

func (a *AuthUseCase) SignIn(ctx context.Context, username, password string) (token *domain.Token, err error)

func (*AuthUseCase) SignInWithProvider

func (a *AuthUseCase) SignInWithProvider(ctx context.Context, provider domain.Provider, token string) (genToken *domain.Token, err error)

func (*AuthUseCase) SignUp

func (a *AuthUseCase) SignUp(ctx context.Context, auth *domain.Auth) error

func (*AuthUseCase) SignUpWithProvider added in v0.1.4

func (a *AuthUseCase) SignUpWithProvider(ctx context.Context, provider domain.Provider, token string) error

func (*AuthUseCase) Update added in v0.1.11

func (a *AuthUseCase) Update(ctx context.Context, auth *domain.Auth) error

func (*AuthUseCase) Verify added in v0.1.12

func (a *AuthUseCase) Verify(ctx context.Context, token string) (auth *domain.Auth, err error)

Jump to

Keyboard shortcuts

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