Versions in this module Expand all Collapse all v0 v0.1.0 Feb 28, 2019 Changes in this version + const BlocksBucket + const HashSHA256 + const IndexBucket + const LastBlock + const SettingsDir + const TxnsBucket + const TxnsDir + func Handler(a *Archiver) http.Handler + type Archiver struct + func New(db *bolt.DB, rotateSize int) (*Archiver, error) + func (a *Archiver) Block(ctx context.Context, hash BlockHash) (*BlockMeta, error) + func (a *Archiver) CheckSettings(ctx context.Context, tid pt.SettingsID) (*BlockMeta, error) + func (a *Archiver) CheckTxn(ctx context.Context, tid pt.TxnID) (*BlockMeta, error) + func (a *Archiver) LastBlock(ctx context.Context) (*BlockMeta, error) + func (a *Archiver) Push(ctx context.Context, txns []pt.Txn) error + func (a *Archiver) PushSettings(ctx context.Context, sett *pt.Settings) error + func (a *Archiver) Rotate() error + func (a *Archiver) SetMinio(c *MinioConfig) error + func (a *Archiver) Start(d time.Duration) error + type BlockHash [sha256.Size]byte + var ZeroBlockHash BlockHash + func NewBlockHash(h []byte) BlockHash + func NewBlockHashFromString(s string) BlockHash + func (h *BlockHash) UnmarshalJSON(data []byte) error + func (h BlockHash) MarshalJSON() ([]byte, error) + func (h BlockHash) String() string + type BlockMeta struct + Hash BlockHash + HashType HashType + PrevHash BlockHash + Status Status + StorageBucket string + StoragePath string + Time string + type HashType string + type MinioConfig struct + Bucket string + Client *minio.Client + Location string + Prefix string + type Status int + const FIXED + const NOTFOUND + const PREPROCESSED + const UNPROCESSED + const UPLOADED + func (i Status) String() string + func (s Status) Bytes() []byte