httpsaas

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package httpsaas adapts SaaS tenant middleware and guards to net/http.

包 httpsaas 将 SaaS 租户中间件和防护机制适配到 net/http。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostGuard

func HostGuard(next http.Handler) http.Handler

HostGuard allows only host context.

func TenantMiddleware

func TenantMiddleware(resolver resolver.Resolver, store store.Store) func(http.Handler) http.Handler

TenantMiddleware resolves the current tenant and stores it in request context.

func TenantStatusGuard

func TenantStatusGuard(next http.Handler) http.Handler

TenantStatusGuard allows only active tenants.

Types

This section is empty.

Jump to

Keyboard shortcuts

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