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 Request ¶
type Request struct { Type RequestType Database string RetentionPolicy string ShardID uint64 Since time.Time }
Request represents a request for a specific backup or for information about the shards on this server for a database or retention policy
type RequestType ¶
type RequestType uint8
const ( RequestShardBackup RequestType = iota RequestMetastoreBackup RequestDatabaseInfo RequestRetentionPolicyInfo )
type Response ¶
type Response struct {
Paths []string
}
Response contains the relative paths for all the shards on this server that are in the requested database or retention policy
type Service ¶
type Service struct { MetaClient interface { encoding.BinaryMarshaler Database(name string) (*meta.DatabaseInfo, error) } TSDBStore *tsdb.Store Listener net.Listener Logger *log.Logger // contains filtered or unexported fields }
Service manages the listener for the snapshot endpoint.
Click to show internal directories.
Click to hide internal directories.