permissions

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Permission

type Permission uint8
const (
	Unknown Permission = iota
	UsersManage
	UsersView
	APIKeysManage
	APIKeysView
	APIKeysRevoke
	CounterpartiesManage
	CounterpartiesView
	AccountsManage
	AccountsView
	TravelRuleManage
	TravelRuleDelete
	TravelRuleView
	ConfigManage
	ConfigView
	PKIManage
	PKIDelete
	PKIView
)

Permissions constants from the database associated with the primary Key

func Parse

func Parse(p any) (Permission, error)

func (Permission) MarshalJSON

func (p Permission) MarshalJSON() ([]byte, error)

func (Permission) String

func (p Permission) String() string

func (*Permission) UnmarshalJSON

func (p *Permission) UnmarshalJSON(data []byte) (err error)

type Permissions

type Permissions []Permission

func (Permissions) String

func (p Permissions) String() []string

Jump to

Keyboard shortcuts

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