proxy

package
v2.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 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