api

package
v1.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

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 client to the Replicator API.

func (*Client) Status

func (c *Client) Status() *Status

Status returns a handle on the status related endpoints.

type Config

type Config struct {
	// Address is the address of the Replicator agent.
	Address string
	// contains filtered or unexported fields
}

Config is the config used to embed into the API client.

type Status

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

Status is used to query all status related endpoints.

func (*Status) Leader

func (s *Status) Leader() (structs.LeaderResponse, error)

Leader is used to query information regarding the current Replicator leader.

Jump to

Keyboard shortcuts

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