storage

package module
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

README

storage

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v1.5.0

type Config interface {
	CheckConfig() Config
}

Config is an interface for this package

type Storage

type Storage interface {

	// basic operations
	Has(key string) bool
	Put(key string, value []byte) error
	Get(key string) ([]byte, error)
	Del(key string) error
	Sync() error
	Close() error

	// batch operations
	PutBatch(batch *binary.Batch) error
	GetBatch(keys ...string) (*binary.Batch, error)

	// stats
	Stats() (StorageStats, error)
}

Storage is an interface for this package

type StorageStats added in v1.5.0

type StorageStats interface {
	String() string
	JSON() (string, error)
}

StorageStats is an interface for this package

Jump to

Keyboard shortcuts

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