dayfile

package
v0.0.0-...-aaf6028 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DayID

type DayID [8]byte

type DayfileIndex

type DayfileIndex struct {
	// contains filtered or unexported fields
}

func OpenDayfileIndex

func OpenDayfileIndex(path string, cfg *bucketstore.Config) (*DayfileIndex, error)

func (*DayfileIndex) Expire

func (d *DayfileIndex) Expire(expire time.Time) error

func (*DayfileIndex) FreeStorage

func (d *DayfileIndex) FreeStorage() (int64, error)

func (*DayfileIndex) Get

func (d *DayfileIndex) Get(id []byte, overv, head, body *bufferex.Binary) (ok bool, e error)

func (*DayfileIndex) Put

func (d *DayfileIndex) Put(id, overv, head, body []byte, expire time.Time) error

type Position

type Position struct {
	Day              DayID
	Offset           int64
	Over, Head, Body int
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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