proxy_mirror

package
v0.12.5 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "proxy_mirror"
)

Variables

This section is empty.

Functions

func Check

func Check(v *Config, workers map[eosc.RequireId]eosc.IWorker) error

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Addr       string        `json:"Addr" label:"服务地址" description:"镜像服务地址, 需要包含scheme"`
	SampleConf *SampleConfig `json:"sample_conf" label:"采样配置"`
	Timeout    int           `json:"timeout" label:"请求超时时间"`
	PassHost   string        `` /* 251-byte string literal not displayed */
	Host       string        `` /* 151-byte string literal not displayed */
}

type SampleConfig

type SampleConfig struct {
	RandomRange int `json:"random_range" label:"随机数范围"`
	RandomPivot int `json:"random_pivot" label:"随机数锚点"`
}

Jump to

Keyboard shortcuts

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