auth

package
v0.0.0-...-9293419 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 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 HTTPHandler

type HTTPHandler interface {
	Login() echo.HandlerFunc
	RefreshToken() echo.HandlerFunc
	VerifyToken() echo.HandlerFunc
}

HTTPHandler interface is the interface for interacting with the HTTP transport layer

type PGRespository

type PGRespository interface {
	Login(ctx context.Context, username string, password string) (postgres.User, error)
	RefreshToken(ctx context.Context, refreshToken string) (postgres.User, error)
	VerifyToken(ctx context.Context, accessToken string) (postgres.User, error)
}

PGRespository interface is the interface for interacting with the Postgres database

type Usecase

type Usecase interface {
	SignIn(ctx context.Context, username string, password string) (postgres.User, error)
}

Directories

Path Synopsis
transport

Jump to

Keyboard shortcuts

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