Documentation
¶
Index ¶
- Variables
- type ApiClient
- func (c *ApiClient) FillSlot(slots ...*models.Slot) error
- func (c *ApiClient) Model() (*models.Proxy, error)
- func (c *ApiClient) SetXAuth(name, auth string, token string)
- func (c *ApiClient) Shutdown() error
- func (c *ApiClient) Start() error
- func (c *ApiClient) Stats() (*Stats, error)
- func (c *ApiClient) Summary() (*Summary, error)
- func (c *ApiClient) XPing() error
- type Config
- type Proxy
- func (s *Proxy) Close() error
- func (s *Proxy) FillSlot(slots ...*models.Slot) error
- func (s *Proxy) GetConfig() *Config
- func (s *Proxy) GetModel() *models.Proxy
- func (s *Proxy) GetSlots() []*models.Slot
- func (s *Proxy) GetToken() string
- func (s *Proxy) GetXAuth() string
- func (s *Proxy) IsClosed() bool
- func (s *Proxy) IsOnline() bool
- func (s *Proxy) Start() error
- type Stats
- type Summary
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosedProxy = errors.New("use of closed proxy")
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct {
// contains filtered or unexported fields
}
func NewApiClient ¶
type Config ¶
type Config struct {
ProtoType string `toml:"proto_type" json:"proto_type"`
ProxyAddr string `toml:"proxy_addr" json:"proxy_addr"`
AdminAddr string `toml:"admin_addr" json:"admin_addr"`
ProductName string `toml:"product_name" json:"product_name"`
ProductAuth string `toml:"product_auth" json:"-"`
BackendPingPeriod int `toml:"backend_ping_period" json:"backend_ping_period"`
SessionMaxTimeout int `toml:"session_max_timeout" json:"session_max_timeout"`
SessionMaxBufSize int `toml:"session_max_bufsize" json:"session_max_bufsize"`
SessionMaxPipeline int `toml:"session_max_pipeline" json:"session_max_pipeline"`
SessionKeepAlivePeriod int `toml:"session_keepalive_period" json:"session_keepalive_period"`
}
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
func (*Config) LoadFromFile ¶
Click to show internal directories.
Click to hide internal directories.