ports

package
v0.0.0-...-9b36f3e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepository

type AuthRepository interface {
	Get(id uint) (jwt.Token, error)
	Save(jwt.Token) error
}

type AuthService

type AuthService interface {
	Login(username string, password string) (string, error)
	Me() (domain.User, error)
	Refresh() (string, error)
	Logout() (string, error)
}

type UserRepository

type UserRepository interface {
	FindAll() (items map[string]domain.User, err error)
	FindById(id uint) (item *domain.User, err error)
	Update(id uint, model *domain.User) (err error)
	Replace(id uint, model *domain.User) (err error)
	Create(model *domain.User) (err error)
	Delete(id uint) (err error)
}

type UserService

type UserService interface {
	FindAll() (items map[string]domain.User, err error)
	FindById(id string) (item *domain.User, err error)
	Update(id string, model *domain.User) (err error)
	Replace(id string, model *domain.User) (err error)
	Create(model *domain.User) (err error)
	Delete(id string) (err error)
}

Jump to

Keyboard shortcuts

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