repository

package
v0.0.0-...-648bf50 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnection

func CloseConnection()

Types

type PasswordRepo

type PasswordRepo interface {
	GetPassword(id int64) entity.Password
	GetPasswordByForAndUsername(forEntity, username string) entity.Password
	ForPasswordsListByUsername(username string) []string
	ExistsPasswordForEntity(forEntity, username string) bool
	Create(password, forEntity string, userId int64) (int64, error)
	DeleteByUsername(username string) error
	Delete(id int64) error
	Update(password, forEntity string, userId int64) error
}

func PasswordRepository

func PasswordRepository(ctx context.Context) PasswordRepo

type UserRepo

type UserRepo interface {
	GetUser(id int64) entity.User
	GetUserByUsername(username string) entity.User
	ExistByUsername(username string) bool
	Create(user *entity.User) (id int64, err error)
	GetActive() entity.User
	SetActive(username string)
	SetNonActive(username string)
	ListUsersNames() map[string]bool
	Delete(username string) error
}

func UserRepository

func UserRepository(ctx context.Context) UserRepo

Jump to

Keyboard shortcuts

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