Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
http.ProxyFromEnvironment, DialContext: (&net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, DualStack: true, }).DialContext, MaxIdleConns: 100, MaxIdleConnsPerHost: 100, IdleConnTimeout: 90 * time.Second, TLSHandshakeTimeout: 10 * time.Second, ExpectContinueTimeout: 1 * time.Second, }Proxy:
Functions ¶
Types ¶
type BackendType ¶
type BackendType string
const ( EthBackend BackendType = "ETH" BtcBackend BackendType = "BTC" )
type BatchResponse ¶
type BatchResponse struct {
// contains filtered or unexported fields
}
func NewBatchResponse ¶
func NewBatchResponse(res http.ResponseWriter) *BatchResponse
func (*BatchResponse) Flush ¶
func (b *BatchResponse) Flush() error
func (*BatchResponse) ResponseWriter ¶
func (b *BatchResponse) ResponseWriter() http.ResponseWriter
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
func NewInterceptor ¶
func NewInterceptor() *Interceptor
func (*Interceptor) Body ¶
func (w *Interceptor) Body() []byte
func (*Interceptor) Header ¶
func (w *Interceptor) Header() http.Header
func (*Interceptor) IsOK ¶
func (w *Interceptor) IsOK() bool
func (*Interceptor) WriteHeader ¶
func (w *Interceptor) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.