middleware

package
v0.0.0-...-1b5374a Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TenantFromCtx

func TenantFromCtx(ctx *gear.Context) (*tpl.Tenant, error)

TenantFromCtx ...

func VerifyAdmin

func VerifyAdmin(ctx *gear.Context) error

VerifyAdmin 验证请求者管理员身份,如果验证失败,则返回 401 的 gear.HTTPError

func VerifyTenant

func VerifyTenant(ctx *gear.Context) error

VerifyTenant 验证请求者租户身份,如果验证失败,则返回 401 的 gear.HTTPError

func VidFromCtx

func VidFromCtx(ctx *gear.Context) (*otgo.OTVID, error)

VidFromCtx ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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