v0.13.0 Latest Latest

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

Go to latest
Published: May 11, 2016 License: MIT Imports: 13 Imported by: 0




View Source
const MuxHeader = 6

MuxHeader is the header byte used for the TCP muxer.


This section is empty.


This section is empty.


type Client

type Client struct {
	// contains filtered or unexported fields

Client represents a client for connecting remotely to a copier service.

func NewClient

func NewClient(host string) *Client

NewClient return a new instance of Client.

func (*Client) ShardReader

func (c *Client) ShardReader(id uint64) (io.ReadCloser, error)

ShardReader returns a reader for streaming shard data. Returned ReadCloser must be closed by the caller.

type Service

type Service struct {
	TSDBStore interface {
		Shard(id uint64) *tsdb.Shard

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

Service manages the listener for the 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) SetLogOutput added in v0.13.0

func (s *Service) SetLogOutput(w io.Writer)

SetLogOutput sets the writer to which all logs are written. It must not be called after Open is called.


Path Synopsis
Package copier is a generated protocol buffer package.
Package copier is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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