repository

package
v0.0.0-...-88cfa3e Latest Latest
Warning

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

Go to latest
Published: Dec 10, 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 RolesRepository

type RolesRepository interface {
	RolesById(ctx context.Context, id string) ([]string, error)
	RolesPermissions(ctx context.Context, roles []string) ([]string, error)
}

type UsersRepository

type UsersRepository interface {
	Save(ctx context.Context, user *entities.User) error
	FindById(ctx context.Context, id string) (*entities.User, error)
	FindByEmail(ctx context.Context, email string) (*entities.User, error)
	Update(ctx context.Context, user *entities.User) error
	Delete(ctx context.Context, id string) error

	AssignRoleById(ctx context.Context, id, role string) error
	RevokeRoleById(ctx context.Context, id, role string) error
}

Jump to

Keyboard shortcuts

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