carbonx

package module
v0.0.0-...-91f7c8f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: MIT Imports: 8 Imported by: 0

README

carbonx

An extra utility library for /go-carbon, carbonzipper, and carbonapi.

The API may change in the future. Vendoring using PackageManagementTools is recommended.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")
View Source
var SkipDir = errors.New("skip this directory")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(serverURL string, httpClient *http.Client) (*Client, error)

func (*Client) FetchData

func (c *Client) FetchData(name string, from, until time.Time) (*carbonzipperpb3.FetchResponse, error)

func (*Client) FindMetrics

func (c *Client) FindMetrics(pattern string) (*carbonzipperpb3.GlobResponse, error)

func (*Client) FindMetricsRecursive

func (c *Client) FindMetricsRecursive(name string, findMetricFn FindMetricFunc) error

func (*Client) GetMetricInfo

func (c *Client) GetMetricInfo(name string) (*carbonzipperpb3.InfoResponse, error)

type FindMetricFunc

type FindMetricFunc func(name string, isLeaf bool, err error) error

Directories

Path Synopsis
Package carbonpb is a generated protocol buffer package.
Package carbonpb is a generated protocol buffer package.
Package carbonzipperpb3 is a generated protocol buffer package.
Package carbonzipperpb3 is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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