Documentation
¶
Index ¶
- Constants
- func MainMain(ctx context.Context, listener net.Listener, kvpath, consulAddress string, ...)
- type Bucket
- func (b *Bucket) GetDedupeEntry(ctx context.Context, hash [16]byte, mask int) (DedupeUpload, error)
- func (b *Bucket) GetRecordHash(ctx context.Context, hash [16]byte, mask int) (RecordHashUpload, error)
- func (b *Bucket) PutDedupeEntries(ctx context.Context, hashes []DedupeUpload, mask int) error
- func (b *Bucket) PutRecordHashes(ctx context.Context, hashes []RecordHashUpload, mask int) error
- func (b *Bucket) SetCheckpoint(ctx context.Context, data []byte) error
- func (b *Bucket) SetIssuer(ctx context.Context, cert *x509.Certificate) error
- func (b *Bucket) SetSth(ctx context.Context, data []byte) error
- func (b *Bucket) SetTile(ctx context.Context, tile tlog.Tile, data []byte) error
- type DedupeUpload
- type FsStorage
- type GlobalConfig
- type Log
- type LogEntryWithReturnPath
- type RecordHashUpload
- type S3Storage
- type Storage
- type UnsequencedEntryWithReturnPath
Constants ¶
View Source
const ( RHURecordSize = 21 RHUHashSize = 16 // Sunlight defines index size to be 40 bits or 5 bytes RHULeafIndexSize = 5 )
View Source
const ( DDURecordSize = 29 DDUHashSize = 16 // Sunlight defines index size to be 40 bits or 5 bytes DDULeafIndexSize = 5 DDUTimestampSize = 8 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bucket ¶
type Bucket struct {
S Storage
}
func (*Bucket) GetDedupeEntry ¶
func (*Bucket) GetRecordHash ¶
func (*Bucket) PutDedupeEntries ¶
TODO: This NEEDS unit testing
func (*Bucket) PutRecordHashes ¶
TODO: This NEEDS unit testing TODO: convert these to use binary search
func (*Bucket) SetCheckpoint ¶
type DedupeUpload ¶
type DedupeUpload struct {
// contains filtered or unexported fields
}
func BytesToDedupe ¶
func BytesToDedupe(b []byte) (DedupeUpload, error)
func (*DedupeUpload) ToBytes ¶
func (r *DedupeUpload) ToBytes() []byte
type FsStorage ¶
type FsStorage struct {
// contains filtered or unexported fields
}
func NewFsStorage ¶
type GlobalConfig ¶
type GlobalConfig struct { Name string `json:"name"` KeyPath string `json:"keyPath"` LogID string `json:"logID"` ListenAddress string `json:"listenAddress"` MaskSize int `json:"maskSize"` // If this is set, the log will write to the filesystem instead of S3 // This value is prefered over the S3 values RootDirectory string `json:"rootDirectory"` S3Bucket string `json:"s3Bucket"` S3Region string `json:"s3Region"` S3EndpointUrl string `json:"s3EndpointUrl"` S3StaticCredentialUserName string `json:"s3StaticCredentialUserName"` S3StaticCredentialPassword string `json:"s3StaticCredentialPassword"` NotAfterStart string `json:"notAfterStart"` NotAfterLimit string `json:"notAfterLimit"` FlushMs int `json:"flushMs"` }
type LogEntryWithReturnPath ¶
type LogEntryWithReturnPath struct {
// contains filtered or unexported fields
}
type RecordHashUpload ¶
type RecordHashUpload struct {
// contains filtered or unexported fields
}
func BytesToRecord ¶
func BytesToRecord(b []byte) (RecordHashUpload, error)
func (*RecordHashUpload) ToBytes ¶
func (r *RecordHashUpload) ToBytes() []byte
type S3Storage ¶
type S3Storage struct {
// contains filtered or unexported fields
}
func NewS3Storage ¶
type UnsequencedEntryWithReturnPath ¶
type UnsequencedEntryWithReturnPath struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.