permission

package
v0.0.0-...-53ff5f4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Create(ctx context.Context, serviceID uint32, name string, access *access.Access) (p *types.Permission, err error)
	Get(ctx context.Context, p *types.Permission) (perm *types.Permission, err error)
	GetAll(ctx context.Context) (p []*types.Permission, err error)
	GetFiltered(ctx context.Context, p *types.Permission) (perm []*types.Permission, err error)
	Delete(ctx context.Context, p *types.Permission) (ok bool, err error)
}

func New

func New(db *gorm.DB) Service

Jump to

Keyboard shortcuts

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