proxy

package
v2.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBaselineData

func GetBaselineData(uid string, redisdb *redisdb.Redis, prefix string, size, retry int) (ret []string)

Types

type ProxyController

type ProxyController struct {
	web.Controller
	RequestInfo *RequestInfo
}

func (*ProxyController) Process

func (c *ProxyController) Process(w http.ResponseWriter, r *http.Request)

type RequestInfo

type RequestInfo struct {
	Path   string
	Method string

	// Timeout how max millisecond to invoke the Path
	Timeout int

	ResponseFunc ResponseFunc

	ErrorResponseFunc ResponseFunc
}

type ResponseFunc

type ResponseFunc func(w http.ResponseWriter, requestBody, responseBody []byte) bool

Jump to

Keyboard shortcuts

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