gateway

package
v0.0.0-...-d386c04 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxAccount   ctxkey = "kanthor.gateway.context.account"
	CtxWorkspace ctxkey = "kanthor.gateway.context.workspace"
)
View Source
const EngineHttpx = "httpx"

Variables

View Source
var Ctx = "kanthor.gateway.context"
View Source
var MetaWorkspaceId = "kanthor.gateway.metadata.workspace.id"

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr    string   `json:"addr" yaml:"addr"`
	Timeout int64    `json:"timeout" yaml:"timeout"`
	Origins []string `json:"origins" yaml:"origins"`
}

func (*Config) Validate

func (conf *Config) Validate(prefix string) error

type Err

type Err struct {
	Error string `json:"error" yaml:"error"`

} // @name Error

func Error

func Error(err error) *Err

func ErrorString

func ErrorString(err string) *Err

type Query

type Query struct {
	Search string   `json:"_q" form:"_q"`
	Limit  int      `json:"_limit" form:"_limit"`
	Page   int      `json:"_page" form:"_page"`
	Id     []string `json:"id" form:"id"`
	Start  int64    `json:"_start" form:"_start"`
	End    int64    `json:"_end" form:"_end"`
}

Directories

Path Synopsis
gin

Jump to

Keyboard shortcuts

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