Documentation ¶
Overview ¶
Code generated by go run github.com/nfx/slrp/ql/generator/main.go Foo. DO NOT EDIT.
Index ¶
- Variables
- type ApiEntry
- type ApiEntryDataset
- type Card
- type Pool
- func (pool *Pool) Add(ctx context.Context, proxy pmux.Proxy, speed time.Duration)
- func (pool *Pool) Configure(c app.Config) error
- func (pool *Pool) HttpGet(r *http.Request) (any, error)
- func (pool *Pool) Len() (res int)
- func (pool *Pool) MarshalBinary() ([]byte, error)
- func (pool *Pool) PendingEviction() []pmux.Proxy
- func (pool *Pool) RandomFast(ctx context.Context) context.Context
- func (pool *Pool) Remove(proxy pmux.Proxy) bool
- func (pool *Pool) RoundTrip(req *http.Request) (res *http.Response, err error)
- func (pool *Pool) Session(ctx context.Context, fn func(context.Context, httpClient) error) error
- func (pool *Pool) Start(ctx app.Context)
- func (pool *Pool) UnmarshalBinary(data []byte) error
- type PoolStats
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoProxiesLeft = fmt.Errorf("no proxies left")
Functions ¶
This section is empty.
Types ¶
type ApiEntryDataset ¶ added in v0.2.0
type ApiEntryDataset []ApiEntry
func (ApiEntryDataset) Query ¶ added in v0.2.0
func (d ApiEntryDataset) Query(query string) (*eval.QueryResult[ApiEntry], error)
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func NewPool ¶
func NewPool(history *history.History, ipLookup ipinfo.IpInfoGetter, dialer dialer) *Pool
func (*Pool) MarshalBinary ¶
func (*Pool) PendingEviction ¶ added in v0.3.0
func (*Pool) UnmarshalBinary ¶
Click to show internal directories.
Click to hide internal directories.