storage

package
v0.0.0-...-d80a93d Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2016 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InmemoryStorage

type InmemoryStorage struct{}

func NewInmemoryStorage

func NewInmemoryStorage() *InmemoryStorage

func (*InmemoryStorage) Close

func (is *InmemoryStorage) Close() error

func (*InmemoryStorage) Flush

func (is *InmemoryStorage) Flush() error

func (*InmemoryStorage) Open

func (is *InmemoryStorage) Open(filename string, length int) ([]uint64, error)

type PersistentStorage

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

func NewPersistentStorage

func NewPersistentStorage() *PersistentStorage

func (*PersistentStorage) Close

func (ps *PersistentStorage) Close() error

func (*PersistentStorage) Flush

func (ps *PersistentStorage) Flush() error

func (*PersistentStorage) Open

func (ps *PersistentStorage) Open(filename string, length int) ([]uint64, error)

Jump to

Keyboard shortcuts

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