Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( //BoltChunkBucket is the name of the bucket that holds all chunks BoltChunkBucket = []byte("chunks") )
var SupportedStores = []string{"bolt", "mem"}
SupportedStores holds identifiers for all supported stores
Functions ¶
Types ¶
type BoltStore ¶
BoltStore stores chunks into a mmap file using a B+tree
func NewBoltStore ¶
NewBoltStore creates a new store by memory-mapping the file at path 'p', the database file is created if non exists at the destination
type MemStore ¶
MemStore stores Chunks in a map that only exists for the duration of the process, it conveniently also implements the http.Handler interface to allow it to be used as a testing remote for the S3 remote.
type S3Remote ¶
type S3Remote struct {
// contains filtered or unexported fields
}
S3Remote will put and get chunks from an AWS S3 (compatible) interface
func NewS3Remote ¶
NewS3Remote sets up a HTTP client that allows chunks to be pushed to an S3 compatible object store. Its request will take on the following template <scheme>://<host>/<prefix>/<key>. When the access_key_id is set in the credentials, request will we signed prior to sending