auth

package
v0.0.0-...-38b1c69 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client authProto.AuthClient) *authCase

Types

type Usecase

type Usecase interface {
	Register(ctx context.Context, user *entity.User) error
	Login(ctx context.Context, username, password string) (*session.Session, error)
	GetUserIDBySession(ctx context.Context, sess *session.Session) (int, error)
	Logout(ctx context.Context, sess *session.Session) error
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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