client

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TidepoolAuthenticationTokenHeaderName = "X-Tidepool-Session-Token"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	RecordMetric(context Context, name string, data ...map[string]string) error
}

type Config

type Config struct {
	Address        string `json:"address"`
	RequestTimeout int    `json:"requestTimeout"`
}

func (*Config) Clone

func (c *Config) Clone() *Config

func (*Config) Validate

func (c *Config) Validate() error

type Context

type Context interface {
	Logger() log.Logger
	Request() *rest.Request
	AuthenticationDetails() client.AuthenticationDetails
}

type Standard

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

func NewStandard

func NewStandard(versionReporter version.Reporter, name string, config *Config) (*Standard, error)

func (*Standard) RecordMetric

func (s *Standard) RecordMetric(context Context, metric string, data ...map[string]string) error

Jump to

Keyboard shortcuts

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