request

package
v0.0.0-...-7f5b3d9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTP

func NewHTTP(serviceName, baseURL string, timeout time.Duration) *axios.Instance

NewHTTP 新建实例

func UpdateConcurrencyLimit

func UpdateConcurrencyLimit(limits map[string]int)

UpdateConcurrencyLimit update the concurrency limit for instance

Types

type InstanceStats

type InstanceStats struct {
	Name           string `json:"name"`
	MaxConcurrency int    `json:"maxConcurrency"`
	Concurrency    int    `json:"concurrency"`
}

func GetHTTPStats

func GetHTTPStats() []*InstanceStats

GetHTTPStats get http instance stats

Jump to

Keyboard shortcuts

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