store

package
v0.0.0-...-27f3ab6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDBStore

type BoltDBStore struct {
	BoltDB *bolt.DB
	Bucket string
	Key    string
}

func (*BoltDBStore) Get

func (b *BoltDBStore) Get() ([]byte, error)

func (*BoltDBStore) Set

func (b *BoltDBStore) Set(data []byte) error

type GzipCompressed

type GzipCompressed struct {
	Delegate Store
}

func (*GzipCompressed) Get

func (g *GzipCompressed) Get() ([]byte, error)

func (*GzipCompressed) Set

func (g *GzipCompressed) Set(data []byte) error

type MemoryStore

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

func (*MemoryStore) Get

func (m *MemoryStore) Get() ([]byte, error)

func (*MemoryStore) Set

func (m *MemoryStore) Set(data []byte) error

type Store

type Store interface {
	Set(data []byte) error
	Get() ([]byte, error)
}

Jump to

Keyboard shortcuts

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