service

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MasterUserService

type MasterUserService interface {
	CreateUser(name, password string) error
	Login(name, password string) (entity.MasterUser, error)
	GetUsers(head, tail int) ([]entity.MasterUser, error)
	DropUser(username string, password string) error
}

func NewMasterUserService

func NewMasterUserService(masterUserRepository repository.MasterUserRepository) MasterUserService

type PasswordService

type PasswordService interface {
	SetPassword(key, plainPw, description string) error
	GetPassword(key string) (string, error)
	UpdatePassword(key, plainPwForPersist, plainUserPw string) error
	GetAllPasswords() ([]entity.PasswordList, error)
}

func NewPasswordService

func NewPasswordService(userPk int, cryptoKey []byte) (PasswordService, error)

Jump to

Keyboard shortcuts

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