Documentation ¶
Index ¶
- func Register(name string, proxy Proxy)
- type Proxy
- type ProxyConfig
- type ProxyConfigs
- type ProxyContainer
- type XiciConfig
- type XiciProxy
- type XiciProxyContainer
- func (this *XiciProxyContainer) DeleteProxy(i int)
- func (this *XiciProxyContainer) Init()
- func (this *XiciProxyContainer) Len() int
- func (this *XiciProxyContainer) One() *ProxyConfig
- func (this *XiciProxyContainer) TestProxy(p *ProxyConfig) bool
- func (this *XiciProxyContainer) Update(p *ProxyConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proxy ¶
type Proxy interface {
NewProxyImpl(dsn string) (ProxyContainer, error)
}
type ProxyConfig ¶
type ProxyConfigs ¶
type ProxyConfigs []*ProxyConfig
func (ProxyConfigs) Len ¶
func (a ProxyConfigs) Len() int
func (ProxyConfigs) Less ¶
func (a ProxyConfigs) Less(i, j int) bool
func (ProxyConfigs) Swap ¶
func (a ProxyConfigs) Swap(i, j int)
type ProxyContainer ¶
type ProxyContainer interface { Init() One() *ProxyConfig Len() int Update(p *ProxyConfig) DeleteProxy(i int) }
func NewProxy ¶
func NewProxy(proxy_name, dsn string) (ProxyContainer, error)
type XiciConfig ¶
type XiciProxy ¶
type XiciProxy struct { }
func (*XiciProxy) NewProxyImpl ¶
func (this *XiciProxy) NewProxyImpl(dsn string) (ProxyContainer, error)
type XiciProxyContainer ¶
type XiciProxyContainer struct {
// contains filtered or unexported fields
}
func (*XiciProxyContainer) DeleteProxy ¶
func (this *XiciProxyContainer) DeleteProxy(i int)
func (*XiciProxyContainer) Init ¶
func (this *XiciProxyContainer) Init()
func (*XiciProxyContainer) Len ¶
func (this *XiciProxyContainer) Len() int
func (*XiciProxyContainer) One ¶
func (this *XiciProxyContainer) One() *ProxyConfig
func (*XiciProxyContainer) TestProxy ¶
func (this *XiciProxyContainer) TestProxy(p *ProxyConfig) bool
true means proxy is OK
func (*XiciProxyContainer) Update ¶
func (this *XiciProxyContainer) Update(p *ProxyConfig)
Click to show internal directories.
Click to hide internal directories.