storage

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

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(absFileName string) (*FileStorage, error)

func (*FileStorage) Destroy

func (f *FileStorage) Destroy() error

func (*FileStorage) Load

func (f *FileStorage) Load() (map[string]interface{}, error)

func (*FileStorage) Save

func (f *FileStorage) Save(payload map[string]interface{}) error

type IStorage

type IStorage interface {
	Save(payload map[string]interface{}) error
	Load() (map[string]interface{}, error)
	Destroy() error
}

type NopStorage

type NopStorage struct {
}

func (NopStorage) Destroy

func (n NopStorage) Destroy()

func (NopStorage) Load

func (n NopStorage) Load() (map[string]interface{}, error)

func (NopStorage) Save

func (n NopStorage) Save(payload map[string]interface{}) error

Jump to

Keyboard shortcuts

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