postgres

package
v0.0.0-...-29cd555 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MigratorPostgres

type MigratorPostgres struct {
	// contains filtered or unexported fields
}

func NewMigratorPostgres

func NewMigratorPostgres(db *db.WrapperDB) *MigratorPostgres

func (*MigratorPostgres) Down

func (r *MigratorPostgres) Down() error

func (*MigratorPostgres) Up

func (r *MigratorPostgres) Up() error

type PermissionsPostgres

type PermissionsPostgres struct {
	// contains filtered or unexported fields
}

func NewPermissionsPostgres

func NewPermissionsPostgres(db *db.WrapperDB) *PermissionsPostgres

func (*PermissionsPostgres) Create

func (*PermissionsPostgres) Delete

func (r *PermissionsPostgres) Delete(ids []uint64) error

func (*PermissionsPostgres) Search

func (*PermissionsPostgres) Update

type ResourcesPostgres

type ResourcesPostgres struct {
	// contains filtered or unexported fields
}

func NewResourcesPostgres

func NewResourcesPostgres(db *db.WrapperDB) *ResourcesPostgres

func (*ResourcesPostgres) Create

func (*ResourcesPostgres) Delete

func (r *ResourcesPostgres) Delete(id uint64) error

func (*ResourcesPostgres) Retrieve

func (r *ResourcesPostgres) Retrieve(id uint64) (entities.Resource, error)

func (*ResourcesPostgres) Search

func (*ResourcesPostgres) Update

type RolesPostgres

type RolesPostgres struct {
	// contains filtered or unexported fields
}

func NewRolesPostgres

func NewRolesPostgres(db *db.WrapperDB) *RolesPostgres

func (*RolesPostgres) Create

func (r *RolesPostgres) Create(data dto.CreateRoleDTO) (entities.Role, error)

func (*RolesPostgres) Delete

func (r *RolesPostgres) Delete(id uint64) error

func (*RolesPostgres) Retrieve

func (r *RolesPostgres) Retrieve(id uint64) (entities.Role, error)

func (*RolesPostgres) Search

func (r *RolesPostgres) Search(data dto.SearchRoleDTO) ([]entities.Role, error)

func (*RolesPostgres) Update

func (r *RolesPostgres) Update(data dto.UpdateRoleDTO) (entities.Role, error)

type UsersPostgres

type UsersPostgres struct {
	// contains filtered or unexported fields
}

func NewUsersPostgres

func NewUsersPostgres(db *db.WrapperDB) *UsersPostgres

func (*UsersPostgres) Create

func (r *UsersPostgres) Create(data dto.CreateUserDTO) (entities.User, error)

func (*UsersPostgres) Delete

func (r *UsersPostgres) Delete(id uint64) error

func (*UsersPostgres) Retrieve

func (r *UsersPostgres) Retrieve(id uint64) (entities.User, error)

func (*UsersPostgres) Search

func (r *UsersPostgres) Search(data dto.SearchUserDTO) ([]entities.User, error)

func (*UsersPostgres) Update

func (r *UsersPostgres) Update(data dto.UpdateUserDTO) (entities.User, error)

Jump to

Keyboard shortcuts

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