Storage

package
v0.0.0-...-5cd9a77 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShardIO

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

type SqliteArchiver

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

func NewSqliteArchiver

func NewSqliteArchiver(path string) (*SqliteArchiver, error)

func (*SqliteArchiver) Close

func (sqa *SqliteArchiver) Close()

func (*SqliteArchiver) Delete

func (sqa *SqliteArchiver) Delete(key string) error

func (*SqliteArchiver) DeleteOlderThan

func (sqa *SqliteArchiver) DeleteOlderThan(seconds int) error

func (*SqliteArchiver) Get

func (sqa *SqliteArchiver) Get(key string) (*[]byte, error)

func (*SqliteArchiver) GetIndexes

func (sqa *SqliteArchiver) GetIndexes() (*Shardmap.ShardMap, error)

func (*SqliteArchiver) Set

func (sqa *SqliteArchiver) Set(key string, data *[]byte) error

func (*SqliteArchiver) Truncate

func (sqa *SqliteArchiver) Truncate() error

Jump to

Keyboard shortcuts

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