client

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 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
}

func NewClient

func NewClient(url *url.URL) *Client

func (*Client) Request

func (c *Client) Request(path string) (io.ReadCloser, error)

func (*Client) SetForward

func (c *Client) SetForward(forward string)

func (*Client) SetURL

func (c *Client) SetURL(url *url.URL)

type Cluster

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

func NewCluster

func NewCluster(client *Client) *Cluster

func (*Cluster) Node

func (c *Cluster) Node(nodeID string) (*cluster.Node, error)

func (*Cluster) Nodes

func (c *Cluster) Nodes() ([]*cluster.NodeMetadata, error)

type Gossip

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

func NewGossip

func NewGossip(client *Client) *Gossip

func (*Gossip) Node

func (c *Gossip) Node(nodeID string) (*gossip.NodeState, error)

func (*Gossip) Nodes

func (c *Gossip) Nodes() ([]gossip.NodeMetadata, error)

type Upstream

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

func NewUpstream

func NewUpstream(client *Client) *Upstream

func (*Upstream) Endpoints

func (c *Upstream) Endpoints() (map[string]int, error)

Jump to

Keyboard shortcuts

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