Documentation ¶
Index ¶
- func AllScopes() []string
- func GetAlwaysGrantedMethods() []string
- func NewPermissionsService(db *gorm.DB, eventPublisher events.EventPublisher) *permissionsService
- func RequestMethodToScope(requestMethod string) (string, error)
- func RequestMethodsToScopes(requestMethods []string) ([]string, error)
- type PermissionsService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAlwaysGrantedMethods ¶ added in v1.10.4
func GetAlwaysGrantedMethods() []string
func NewPermissionsService ¶
func NewPermissionsService(db *gorm.DB, eventPublisher events.EventPublisher) *permissionsService
func RequestMethodToScope ¶
func RequestMethodsToScopes ¶
Types ¶
type PermissionsService ¶
type PermissionsService interface { HasPermission(app *db.App, requestMethod string) (result bool, code string, message string) GetPermittedMethods(app *db.App, lnClient lnclient.LNClient) []string PermitsNotifications(app *db.App) bool }
TODO: does this need to be a service?
Click to show internal directories.
Click to hide internal directories.