Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.