storage

package
v0.0.0-...-684c62c Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

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

func NewFileStorage

func NewFileStorage(storagePath string) *FileStorage

func (*FileStorage) GetRaw

func (f *FileStorage) GetRaw() map[string]interface{}

func (*FileStorage) Read

func (f *FileStorage) Read(group string, to interface{})

func (*FileStorage) Store

func (f *FileStorage) Store(group string, v interface{})

type InMemory

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

func NewInMemory

func NewInMemory() *InMemory

func (*InMemory) GetRaw

func (s *InMemory) GetRaw() map[string]interface{}

func (*InMemory) Read

func (s *InMemory) Read(group string, to interface{})

func (*InMemory) Store

func (s *InMemory) Store(group string, v interface{})

type Storage

type Storage interface {
	Store(group string, v interface{})
	Read(group string, to interface{})
	GetRaw() map[string]interface{}
}

Jump to

Keyboard shortcuts

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