db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase() *Database

func (*Database) Load

func (d *Database) Load(key int) (value pocket.Item, ok bool)

func (*Database) Range

func (d *Database) Range(f func(key interface{}, value interface{}) bool)

func (*Database) Read

func (d *Database) Read(r io.Reader) error

func (*Database) Store

func (d *Database) Store(key int, value pocket.Item)

Store sets the value for a key.

func (Database) Write

func (d Database) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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