postgres

package
v0.0.0-...-c99e9fc Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 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 Store

type Store struct{}

func (Store) Delete

func (s Store) Delete(ctx context.Context, f user.Filter) error

func (Store) DeleteEntity

func (s Store) DeleteEntity(ctx context.Context, f user.FilterEntity) ([]user.Entity, error)

func (Store) DeletePermission

func (s Store) DeletePermission(ctx context.Context, f user.FilterPermission) error

func (Store) DeleteRole

func (s Store) DeleteRole(ctx context.Context, f user.FilterRole) error

func (Store) DeleteRoleUser

func (s Store) DeleteRoleUser(ctx context.Context, f user.FilterRoleUser) error

func (Store) Fetch

func (s Store) Fetch(ctx context.Context, f user.Filter) (user.U, error)

func (Store) FetchEntity

func (s Store) FetchEntity(ctx context.Context, f user.FilterEntity) (user.Entity, error)

func (Store) FetchPermission

func (s Store) FetchPermission(ctx context.Context, f user.FilterPermission) (user.Permission, error)

func (Store) FetchRole

func (s Store) FetchRole(ctx context.Context, f user.FilterRole) (user.Role, error)

func (Store) FetchRoleUser

func (s Store) FetchRoleUser(ctx context.Context, f user.FilterRoleUser) (user.RoleUser, error)

func (Store) FetchWithPassword

func (s Store) FetchWithPassword(ctx context.Context, f user.Filter) (user.U, error)

func (Store) Insert

func (s Store) Insert(ctx context.Context, u user.U) error

func (Store) InsertEntity

func (s Store) InsertEntity(ctx context.Context, entity user.Entity) error

func (Store) InsertPermission

func (s Store) InsertPermission(ctx context.Context, permission user.Permission) error

func (Store) InsertPermissions

func (s Store) InsertPermissions(ctx context.Context, permissions []user.Permission) error

func (Store) InsertRole

func (s Store) InsertRole(ctx context.Context, role user.Role) error

func (Store) InsertRoleUser

func (s Store) InsertRoleUser(ctx context.Context, roleUser user.RoleUser) error

func (Store) List

func (s Store) List(ctx context.Context, f user.Filter) ([]user.U, uint64, error)

func (Store) ListByEntity

func (s Store) ListByEntity(ctx context.Context, f user.Filter) ([]user.U, uint64, error)

func (Store) ListByRole

func (s Store) ListByRole(ctx context.Context, f user.Filter) (map[string][]user.U, uint64, error)

func (Store) ListClaims

func (s Store) ListClaims(ctx context.Context, userID ulid.ID) (user.ClaimAuth, error)

func (Store) ListEntity

func (s Store) ListEntity(ctx context.Context, f user.FilterEntity) ([]user.Entity, uint64, error)

func (Store) ListPermission

func (s Store) ListPermission(ctx context.Context, f user.FilterPermission) ([]user.Permission, error)

func (Store) ListRole

func (s Store) ListRole(ctx context.Context, f user.FilterRole) ([]user.Role, uint64, error)

func (Store) ListRoleByUser

func (s Store) ListRoleByUser(ctx context.Context, f user.FilterRole) (map[string][]user.Role, uint64, error)

func (Store) ListRoleUser

func (s Store) ListRoleUser(ctx context.Context, f user.FilterRoleUser) ([]user.RoleUser, error)

func (Store) Update

func (s Store) Update(ctx context.Context, f user.Filter, p user.Patch) ([]user.U, error)

func (Store) UpdateEntity

func (s Store) UpdateEntity(ctx context.Context, f user.FilterEntity, p user.PatchEntity) ([]user.Entity, error)

func (Store) UpdateRole

func (s Store) UpdateRole(ctx context.Context, f user.FilterRole, p user.PatchRole) ([]user.Role, error)

Jump to

Keyboard shortcuts

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