client

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MetricsURL = &url.URL{Path: "/v1/metrics"}
View Source
var StatusURL = &url.URL{Path: "/v1/status"}

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL *url.URL
}

func New

func New(base string) (*Client, error)

func (*Client) Metrics

func (c *Client) Metrics(ctx context.Context) (ret []v1.Metric, err error)

func (*Client) SetStatus

func (c *Client) SetStatus(ctx context.Context, patch v1.Status) (ret v1.Status, err error)

func (*Client) Status

func (c *Client) Status(ctx context.Context) (ret v1.Status, err error)

Jump to

Keyboard shortcuts

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