Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllUpstreamsFailedError = fmt.Errorf("all upstream requests are failed")
View Source
var DecodeError = fmt.Errorf("decode error")
View Source
var DeniedContract = fmt.Errorf("not allowed contract or address")
View Source
var DeniedMethod = fmt.Errorf("not allowed method")
View Source
var TimeoutError = fmt.Errorf("timeout error")
Functions ¶
func LoadConfig ¶
Types ¶
type BlockNumberResponseData ¶
type FallbackProxy ¶
type FallbackProxy struct {
// contains filtered or unexported fields
}
type HttpUpstream ¶
type HttpUpstream struct {
// contains filtered or unexported fields
}
type NaiveProxy ¶
type NaiveProxy struct{}
type RequestData ¶
type RunningConfig ¶
type RunningConfig struct { Upstreams []Upstream Strategy IStrategy MethodLimitationEnabled bool // contains filtered or unexported fields }
func BuildRunningConfigFromConfig ¶
func BuildRunningConfigFromConfig(parentContext context.Context, cfg *Config) (*RunningConfig, error)
type Upstream ¶
type Upstream interface {
// contains filtered or unexported methods
}
the handle function will execute concurrently
type WsUpstream ¶
type WsUpstream struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.