Documentation ¶
Index ¶
- type Controller
- type ControllerOptions
- type EtcdController
- func (e *EtcdController) Create(path string, value string, update bool) (*Reply, error)
- func (e *EtcdController) CreatePath(path string) (*Reply, error)
- func (e *EtcdController) Delete(path string, recursive bool) (*Reply, error)
- func (e *EtcdController) Exists(path string) (bool, error)
- func (e *EtcdController) Read(path string) (*Reply, error)
- type Reply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { Create(string, string, bool) (*Reply, error) Delete(string, bool) (*Reply, error) Read(string) (*Reply, error) CreatePath(string) (*Reply, error) Exists(string) (bool, error) }
func NewController ¶
func NewController(options *ControllerOptions) (Controller, error)
type ControllerOptions ¶
type EtcdController ¶
type EtcdController struct { Nodes []string // contains filtered or unexported fields }
func NewEtcdController ¶
func NewEtcdController(options *ControllerOptions) (*EtcdController, error)
func (*EtcdController) CreatePath ¶
func (e *EtcdController) CreatePath(path string) (*Reply, error)
Click to show internal directories.
Click to hide internal directories.