disco

package
v3.11.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package disco controls interaction with the rqlite Discovery service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides a Discovery Service client.

func New

func New(url string) *Client

New returns an initialized Discovery Service client.

func (*Client) Register

func (c *Client) Register(addr string) (Nodes, error)

Register attempts to register with the Discovery Service, using the given address.

func (*Client) URL

func (c *Client) URL() string

URL returns the Discovery Service URL used by this client.

type Nodes

type Nodes []string

Nodes represents a set of nodes currently registered at the configured Discovery URL.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL