domain

package
v0.0.0-...-eac86dd Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 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 IUserDomain

type IUserDomain interface {
	CreateUser(user *models.User) error
	Login(username, password string) error
	IsLoggedIn() bool
	Logout()
}

func New

func New(userRepository IUserRepository) IUserDomain

type IUserRepository

type IUserRepository interface {
	GetByUsername(username string) (*models.User, error)
	CreateUser(user *models.User) error
}

Jump to

Keyboard shortcuts

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