Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = LibratoConfig{
Username: "root",
Token: "root",
}
View Source
var FakeClient = NewFakeLibratoClient()
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Write([]Measurement) error
}
type FakeLibratoClient ¶
type FakeLibratoClient struct {
Measurements []MeasurementsSavedToLibrato
}
func NewFakeLibratoClient ¶
func NewFakeLibratoClient() *FakeLibratoClient
func (*FakeLibratoClient) Write ¶
func (client *FakeLibratoClient) Write(measurements []Measurement) error
type LibratoClient ¶
type LibratoClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(c LibratoConfig) *LibratoClient
func (*LibratoClient) Write ¶
func (c *LibratoClient) Write(measurements []Measurement) error
type LibratoConfig ¶
type LibratoConfig struct { Username string Token string API string Prefix string Tags map[string]string }
func BuildConfig ¶
func BuildConfig(uri *url.URL) (*LibratoConfig, error)
type Measurement ¶
type MeasurementsSavedToLibrato ¶
type MeasurementsSavedToLibrato struct {
Measurement Measurement
}
Click to show internal directories.
Click to hide internal directories.