routers

package
v1.108.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterRecordMessage

func AfterRecordMessage(ctx *context.Context)

func ApiFilter

func ApiFilter(ctx *context.Context)

func GetSessionUser

func GetSessionUser(ctx *context.Context) *iam.User

func RecordMessage

func RecordMessage(ctx *context.Context)

func TenantContextFilter

func TenantContextFilter(ctx *context.Context)

TenantContextFilter copies the gateway-injected tenant-scope headers (org > app > project, plus tenant/actor/env) onto the beego request context so every downstream handler resolves the caller's scope through object's getters — the ONE shared read-back. Org additionally falls back to the whitelabel hostname's org filter, and tenant defaults to org. App and project are OPTIONAL finer scope beneath org and are threaded verbatim (left unset when the caller sends no header), so a request that omits them is never altered.

func TransparentStatic

func TransparentStatic(ctx *context.Context)

Types

type Object

type Object struct {
	Owner        string `json:"owner"`
	Name         string `json:"name"`
	AccessKey    string `json:"accessKey"`
	AccessSecret string `json:"accessSecret"`
}

type Response

type Response struct {
	Status string      `json:"status"`
	Msg    string      `json:"msg"`
	Data   interface{} `json:"data"`
	Data2  interface{} `json:"data2"`
}

Jump to

Keyboard shortcuts

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