carry

package module
v0.0.0-...-29ca9c5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2017 License: MIT Imports: 7 Imported by: 0

README

carry acts as a HTTP proxy for stats.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterStorageConstructor

func RegisterStorageConstructor(typ string, ctor StorageConstructor)

Types

type Loader

type Loader interface {
	GetStorage() (Storage, error)
}

type MultiStorage

type MultiStorage []Storage

MultiStorage implements the storage interface for many storage backends.

func (MultiStorage) Close

func (ms MultiStorage) Close() (err error)

ReceiveStats implements io.Closer.

func (MultiStorage) ReceiveStats

func (ms MultiStorage) ReceiveStats(stats []*types.Stat) (err error)

ReceiveStats implements StatsReceiver.

type PeriodicWriter

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

func NewPeriodicWriter

func NewPeriodicWriter(w StatsWriter) *PeriodicWriter

func (*PeriodicWriter) Close

func (pw *PeriodicWriter) Close() error

func (*PeriodicWriter) Write

func (pw *PeriodicWriter) Write(stats []*types.Stat) error

type ShutdownStorage

type ShutdownStorage interface {
	Storage
	io.Closer
}

Optional interface for storage implementations which can be asked to shut down cleanly. Regardless, all implementations should be able to survive crashes without data loss.

type StatsReceiver

type StatsReceiver interface {
	// ReceiveStats accepts a carry and writes it to
	// storage.
	ReceiveStats([]*types.Stat) error
}

StatsReceiver is the interface for receiving

type StatsWriter

type StatsWriter interface {
	Write(stats []*types.Stat) error
}

type Storage

type Storage interface {
	StatsReceiver
}

Storage is the interface that must be implemented by a storage type.

func CreateStorage

func CreateStorage(typ string, config *config.Config) (Storage, error)

type StorageConstructor

type StorageConstructor func(*config.Config) (Storage, error)

A StorageConstructor returns a Storage implementation from a configuration.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/garyburd/redigo/internal/redistest
Package redistest contains utilities for writing Redigo tests.
Package redistest contains utilities for writing Redigo tests.
_workspace/src/github.com/garyburd/redigo/redis
Package redis is a client for the Redis database.
Package redis is a client for the Redis database.
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.
_workspace/src/github.com/simonz05/util/httputil
Package httputil contains a bunch of HTTP utility code
Package httputil contains a bunch of HTTP utility code
_workspace/src/github.com/simonz05/util/log
pkg log implements a logger.
pkg log implements a logger.
_workspace/src/github.com/tideland/goas/v1/version
The version package helps other packages to provide information about their current version and compare it to others.
The version package helps other packages to provide information about their current version and compare it to others.
_workspace/src/github.com/tideland/goas/v2/logger
The Logger of the Go Application Support provides a flexible way to log information with different levels and on different backends.
The Logger of the Go Application Support provides a flexible way to log information with different levels and on different backends.
_workspace/src/github.com/tideland/goas/v2/loop
A typical Go idiom for concurrent applications is running a loop in the background doing a select on one or more channels.
A typical Go idiom for concurrent applications is running a loop in the background doing a select on one or more channels.
_workspace/src/github.com/tideland/goas/v2/monitoring
The monitoring package supports three kinds of system monitoring.
The monitoring package supports three kinds of system monitoring.
_workspace/src/github.com/tideland/goas/v3/errors
Typical errors in Go are often created using errors.New() or fmt.Errorf().
Typical errors in Go are often created using errors.New() or fmt.Errorf().
cmd
carry
carry starts a HTTP server which exposes an interface for receiving stats.
carry starts a HTTP server which exposes an interface for receiving stats.

Jump to

Keyboard shortcuts

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