 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- type ErrInvalidKey
- type Nginx
- func (sd *Nginx) Clear(preserveIP, preservePort string) (err error)
- func (sd *Nginx) Delete(ip, port string, dc []string) (err error)
- func (sd *Nginx) DeleteNode(node string) (err error)
- func (sd *Nginx) List() (nodes []string, err error)
- func (sd *Nginx) ListMap() (nodes map[string]string, err error)
- func (sd *Nginx) Namespace() string
- func (sd *Nginx) Nodes() (nodes []utils.KV, err error)
- func (sd *Nginx) Update(ip, port string, dc []string, weight int64) error
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var (
	ErrNoKey = errors.New("list key no found")
)
    Functions ¶
This section is empty.
Types ¶
type ErrInvalidKey ¶
type ErrInvalidKey struct {
	// contains filtered or unexported fields
}
    func (ErrInvalidKey) Error ¶
func (e ErrInvalidKey) Error() string
type Nginx ¶
type Nginx struct {
	// contains filtered or unexported fields
}
    Nginx register node for https://github.com/weibocom/nginx-upsync-module (with consul)
func (*Nginx) DeleteNode ¶
 Click to show internal directories. 
   Click to hide internal directories.