middleware

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectAuthToScope

func InjectAuthToScope(r *http.Request, scope interface{})

InjectAuthToScope injects auth data from HTTP context into ZenoLang scope This should be called in createHandler before executing ZenoLang code

func MultiTenantAuth

func MultiTenantAuth(jwtSecret string) func(http.Handler) http.Handler

MultiTenantAuth is a Chi middleware that handles multi-tenant authentication It auto-detects tenant from X-Tenant-ID header or subdomain, validates JWT token, and sets auth context for downstream handlers

func Recoverer

func Recoverer(next http.Handler) http.Handler

Recoverer adalah middleware custom untuk ZenoEngine

Types

This section is empty.

Jump to

Keyboard shortcuts

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