storage

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: AGPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IStorageQueue

type IStorageQueue interface {
	Add(diff utils.StorageDiff) error
	Delete(id int) error
	GetAll() ([]utils.StorageDiff, error)
}

type StorageQueue

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

func NewStorageQueue

func NewStorageQueue(db *postgres.DB) StorageQueue

func (StorageQueue) Add

func (queue StorageQueue) Add(diff utils.StorageDiff) error

func (StorageQueue) Delete added in v0.0.2

func (queue StorageQueue) Delete(id int) error

func (StorageQueue) GetAll added in v0.0.2

func (queue StorageQueue) GetAll() ([]utils.StorageDiff, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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