Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2026 Changes in this version + const ActionAll + const ActionDelete + const ActionRead + const ActionWrite + const KeyHeader + const ResourceAPIKeys + const ResourceAccounts + const ResourceAll + const ResourceBackup + const ResourceBalanceMonitors + const ResourceBalances + const ResourceHooks + const ResourceIdentities + const ResourceLedgers + const ResourceMetadata + const ResourceReconciliation + const ResourceSearch + const ResourceTransactions + func BuildScope(resource Resource, action Action) string + func CanGrantScopes(callerScopes, requestedScopes []string) bool + func HasPermission(scopes []string, resource Resource, method string) bool + func MetricsAuth(secure bool, token string) gin.HandlerFunc + func MetricsAuthHandler(secure bool, token string, next http.Handler) http.Handler + func ParseScope(scope string) (Resource, Action) + func RateLimitMiddleware(conf *config.Configuration) gin.HandlerFunc + func RequestSizeLimit(maxBytes int64) gin.HandlerFunc + func ScopeCovers(grantedScope, requestedScope string) bool + func SecurityHeaders() gin.HandlerFunc + type Action string + type AuthMiddleware struct + func NewAuthMiddleware(ledgerforge *ledgerforge.LedgerForge) *AuthMiddleware + func (m *AuthMiddleware) Authenticate() gin.HandlerFunc + type Resource string