usecase

package
v0.0.0-...-69e7fd1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UseCase

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

func New

func New(repo repository, notify notify, secure secure) *UseCase

func (*UseCase) AccessTokenByCode

func (uc *UseCase) AccessTokenByCode(ctx context.Context, inp dto.AccessTokenByCode) (*entity.Token, *entity.Token, error)

func (*UseCase) AccessTokenByRefresh

func (uc *UseCase) AccessTokenByRefresh(ctx context.Context, inp dto.AccessTokenByRefresh) (*entity.Token, *entity.Token, error)

func (*UseCase) ClientByResetPassword

func (uc *UseCase) ClientByResetPassword(ctx context.Context, hash string) (*entity.Client, error)

func (*UseCase) CodeByCredentials

func (uc *UseCase) CodeByCredentials(ctx context.Context, inp dto.AuthByCredentials) (*entity.Token, error)

func (*UseCase) ForgotPassword

func (uc *UseCase) ForgotPassword(ctx context.Context, inp dto.ForgotPassword) (*entity.User, error)

func (*UseCase) ResetPassword

func (uc *UseCase) ResetPassword(ctx context.Context, inp dto.ResetPassword) (*entity.Client, error)

func (*UseCase) ValidateResponseType

func (uc *UseCase) ValidateResponseType(ctx context.Context, inp dto.ValidateResponseType) (*entity.Client, error)

Jump to

Keyboard shortcuts

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