snapshotter

package
v0.9.3-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2015 License: MIT Imports: 10 Imported by: 24

Documentation

Index

Constants

View Source
const MuxHeader = 3

MuxHeader is the header byte used for the TCP muxer.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	MetaStore interface {
		encoding.BinaryMarshaler
	}

	TSDBStore *tsdb.Store

	Listener net.Listener
	Logger   *log.Logger
	// contains filtered or unexported fields
}

Service manages the listener for the snapshot endpoint.

func NewService

func NewService() *Service

NewService returns a new instance of Service.

func (*Service) Close

func (s *Service) Close() error

Close implements the Service interface.

func (*Service) Err

func (s *Service) Err() <-chan error

Err returns a channel for fatal out-of-band errors.

func (*Service) Open

func (s *Service) Open() error

Open starts the service.

func (*Service) SetLogger added in v0.9.3

func (s *Service) SetLogger(l *log.Logger)

SetLogger sets the internal logger to the logger passed in.

Jump to

Keyboard shortcuts

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