Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllPermissions = [17]Permission{ UsersManage, UsersView, APIKeysManage, APIKeysView, APIKeysRevoke, CounterpartiesManage, CounterpartiesView, AccountsManage, AccountsView, TravelRuleManage, TravelRuleDelete, TravelRuleView, ConfigManage, ConfigView, PKIManage, PKIDelete, PKIView, }
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
Click to show internal directories.
Click to hide internal directories.