meta

package
v0.0.0-...-8fff639 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meta

type Meta struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Meta data used to track file state.

func New

func New(filename string) (meta *Meta, err error)

New Meta object.

func (*Meta) Close

func (meta *Meta) Close() (err error)

Close the meta data.

func (*Meta) Deleted

func (meta *Meta) Deleted(n uint64) (total uint64, err error)

Deleted [n] number of bytes. Returns current total.

func (*Meta) Next

func (meta *Meta) Next(n uint64) (pos uint64, err error)

Next pointer in file for writing [n] number of bytes.

Jump to

Keyboard shortcuts

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