Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterStorageConstructor ¶
func RegisterStorageConstructor(typ string, ctor StorageConstructor)
Types ¶
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
type ShutdownStorage ¶
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 Storage ¶
type Storage interface { StatsReceiver }
Storage is the interface that must be implemented by a storage type.
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. |
Click to show internal directories.
Click to hide internal directories.