inmem

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package inmem implements the store DAO interface. This implementation is meant to help get an instance of Argus up and running quickly without a need to setup a dedicated DB. Since the current implementation is not scalable, it is recommended for test environments only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMem added in v0.5.0

func NewInMem() store.S

Types

type InMem

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

func (*InMem) Delete

func (i *InMem) Delete(key model.Key) (store.OwnableItem, error)

func (*InMem) Get

func (i *InMem) Get(key model.Key) (store.OwnableItem, error)

func (*InMem) GetAll

func (i *InMem) GetAll(bucket string) (map[string]store.OwnableItem, error)

func (*InMem) Push

func (i *InMem) Push(key model.Key, item store.OwnableItem) error

Jump to

Keyboard shortcuts

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