repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessRepository

type AccessRepository interface {
	GetRuleByEndpoint(ctx context.Context, endpoint string) ([]*model.AccessRule, *db.Query, error)
}

type UserRepository

type UserRepository interface {
	Create(ctx context.Context, info *model.UserCreateInfo) (int64, *db.Query, error)
	Get(ctx context.Context, id int64) (*model.User, *db.Query, error)
	GetByUsername(ctx context.Context, username string) (*model.User, *db.Query, error)
	Update(ctx context.Context, info *model.UserUpdateInfo) (*db.Query, error)
	Delete(ctx context.Context, id int64) (*db.Query, error)
	CheckUsersExistence(ctx context.Context, usernames []string) (*db.Query, error)

	CreateLog(ctx context.Context, action, model string, modelId int64, loggedQ *db.Query) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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