memory

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository() *Repository

NewRepository is a factory to return a repository structure

func (*Repository) Add

func (r *Repository) Add(id uuid.UUID, data []byte)

Add data to the in-memory map for the provided Agent ID

func (*Repository) Get

func (r *Repository) Get(id uuid.UUID) [][]byte

Get return data from the in-memory map for the provided Agent ID

Jump to

Keyboard shortcuts

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