ram

package
v0.0.0-...-f9ff521 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() dr.Storage

Types

type RamStorage

type RamStorage struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*RamStorage) Add

func (r *RamStorage) Add(resource dr.Dr) error

func (*RamStorage) Categories

func (r *RamStorage) Categories() (map[string]int, error)

func (*RamStorage) Delete

func (r *RamStorage) Delete(category string, id string) (dr.Dr, error)

func (*RamStorage) Get

func (r *RamStorage) Get(category string, id string) (dr.Dr, error)

func (*RamStorage) HealthCheck

func (r *RamStorage) HealthCheck() error

func (*RamStorage) List

func (r *RamStorage) List(category string) (map[string]dr.Dr, error)

func (*RamStorage) Now

func (r *RamStorage) Now() int64

func (*RamStorage) Reset

func (r *RamStorage) Reset() error

Jump to

Keyboard shortcuts

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