Versions in this module Expand all Collapse all v0 v0.14.0 Sep 16, 2024 Changes in this version + var ErrNoKey = errors.New("list key no found") + type ErrInvalidKey struct + func (e ErrInvalidKey) Error() string + type Nginx struct + func New(url, namespace, hostname string, logger *zap.Logger) *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