Documentation ¶
Index ¶
- func New() dr.Storage
- type RamStorage
- func (r *RamStorage) Add(resource dr.Dr) error
- func (r *RamStorage) Categories() (map[string]int, error)
- func (r *RamStorage) Delete(category string, id string) (dr.Dr, error)
- func (r *RamStorage) Get(category string, id string) (dr.Dr, error)
- func (r *RamStorage) HealthCheck() error
- func (r *RamStorage) List(category string) (map[string]dr.Dr, error)
- func (r *RamStorage) Now() int64
- func (r *RamStorage) Reset() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RamStorage ¶
func (*RamStorage) Categories ¶
func (r *RamStorage) Categories() (map[string]int, error)
func (*RamStorage) HealthCheck ¶
func (r *RamStorage) HealthCheck() error
func (*RamStorage) Now ¶
func (r *RamStorage) Now() int64
func (*RamStorage) Reset ¶
func (r *RamStorage) Reset() error
Click to show internal directories.
Click to hide internal directories.