usecase

package
v0.0.0-...-0fc7a0e Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 6 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(postgresRepo auth.Repo, logger *slog.Logger) *Usecase

func (*Usecase) Authenticate

func (uc *Usecase) Authenticate(ctx context.Context, username, password string) (*common.User, error)

func (*Usecase) Register

func (uc *Usecase) Register(ctx context.Context, user common.User) (*common.User, error)

Jump to

Keyboard shortcuts

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