ctrl

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

type Gateway struct {
	goblet.Route `/`
	goblet.GroupController
	Def        *openapi3.T
	Targets    []*openapi3.Server
	QpsManager *model.QpsManager
	Crypt      *config.Crypt
	ApiCfg     *config.OpenAPI
	// contains filtered or unexported fields
}

func (*Gateway) Get

func (g *Gateway) Get(ctx *goblet.Context) error

func (*Gateway) Init

func (g *Gateway) Init(server *goblet.Server) error

func (*Gateway) Post

func (g *Gateway) Post(ctx *goblet.Context) error

type Transformer

type Transformer struct {
	Encrypter *model.SmartEncrypter
}

func (*Transformer) CreateResponseIfNotDefined

func (g *Transformer) CreateResponseIfNotDefined() bool

func (*Transformer) TransformValue

func (g *Transformer) TransformValue(def *openapi3.Schema, value interface{}) (bool, interface{}, error)

func (*Transformer) TransformValueVersa

func (g *Transformer) TransformValueVersa(def *openapi3.Schema, value interface{}) (bool, interface{}, error)

Jump to

Keyboard shortcuts

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