Documentation ¶
Index ¶
- func InitGlobalClientService(commonCfg *v1.ClientCommonConfig, proxyCfgs []v1.ProxyConfigurer, ...)
- type Client
- func (c *Client) AddProxy(proxyCfg v1.ProxyConfigurer)
- func (c *Client) AddVisitor(visitorCfg v1.VisitorConfigurer)
- func (c *Client) GetCommonCfg() *v1.ClientCommonConfig
- func (c *Client) GetProxyCfgs() map[string]v1.ProxyConfigurer
- func (c *Client) GetProxyStatus(name string) (*proxy.WorkingStatus, bool)
- func (c *Client) GetVisitorCfgs() map[string]v1.VisitorConfigurer
- func (c *Client) RemoveProxy(proxyCfg v1.ProxyConfigurer)
- func (c *Client) RemoveVisitor(visitorCfg v1.VisitorConfigurer)
- func (c *Client) Run()
- func (c *Client) Running() bool
- func (c *Client) Stop()
- func (c *Client) Update(proxyCfgs []v1.ProxyConfigurer, visitorCfgs []v1.VisitorConfigurer)
- func (c *Client) Wait()
- type ClientHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitGlobalClientService ¶
func InitGlobalClientService(commonCfg *v1.ClientCommonConfig, proxyCfgs []v1.ProxyConfigurer, visitorCfgs []v1.VisitorConfigurer)
Types ¶
type Client ¶
type Client struct { Common *v1.ClientCommonConfig ProxyCfgs map[string]v1.ProxyConfigurer VisitorCfgs map[string]v1.VisitorConfigurer // contains filtered or unexported fields }
func NewClientHandler ¶
func NewClientHandler(commonCfg *v1.ClientCommonConfig, proxyCfgs []v1.ProxyConfigurer, visitorCfgs []v1.VisitorConfigurer) *Client
func (*Client) AddProxy ¶
func (c *Client) AddProxy(proxyCfg v1.ProxyConfigurer)
func (*Client) AddVisitor ¶
func (c *Client) AddVisitor(visitorCfg v1.VisitorConfigurer)
func (*Client) GetCommonCfg ¶
func (c *Client) GetCommonCfg() *v1.ClientCommonConfig
func (*Client) GetProxyCfgs ¶
func (c *Client) GetProxyCfgs() map[string]v1.ProxyConfigurer
func (*Client) GetProxyStatus ¶
func (c *Client) GetProxyStatus(name string) (*proxy.WorkingStatus, bool)
func (*Client) GetVisitorCfgs ¶
func (c *Client) GetVisitorCfgs() map[string]v1.VisitorConfigurer
func (*Client) RemoveProxy ¶
func (c *Client) RemoveProxy(proxyCfg v1.ProxyConfigurer)
func (*Client) RemoveVisitor ¶
func (c *Client) RemoveVisitor(visitorCfg v1.VisitorConfigurer)
func (*Client) Update ¶
func (c *Client) Update(proxyCfgs []v1.ProxyConfigurer, visitorCfgs []v1.VisitorConfigurer)
type ClientHandler ¶
type ClientHandler interface { Run() Stop() Wait() Running() bool Update([]v1.ProxyConfigurer, []v1.VisitorConfigurer) AddProxy(v1.ProxyConfigurer) AddVisitor(v1.VisitorConfigurer) RemoveProxy(v1.ProxyConfigurer) RemoveVisitor(v1.VisitorConfigurer) GetProxyStatus(string) (*proxy.WorkingStatus, bool) GetCommonCfg() *v1.ClientCommonConfig GetProxyCfgs() map[string]v1.ProxyConfigurer GetVisitorCfgs() map[string]v1.VisitorConfigurer }
func GetGlobalClientSerivce ¶
func GetGlobalClientSerivce() ClientHandler
Click to show internal directories.
Click to hide internal directories.