store

package
v0.0.0-...-dcade81 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 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 GobStore

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

func NewGobStore

func NewGobStore(filePath string) *GobStore

func (*GobStore) Delete

func (s *GobStore) Delete(key string)

func (*GobStore) Flush

func (s *GobStore) Flush() error

func (*GobStore) Get

func (s *GobStore) Get(key string) interface{}

func (*GobStore) GetItems

func (s *GobStore) GetItems() map[string]interface{}

func (*GobStore) Put

func (s *GobStore) Put(key string, value interface{})

type Store

type Store interface {
	Get(key string) interface{}
	GetItems() map[string]interface{}
	Put(key string, value interface{})
	Delete(key string)
	Flush() error
}

Jump to

Keyboard shortcuts

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