globals

package
Version: v0.0.0-...-0ae699b Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data map[string]string

Data map representing kv stored for each Agent

type GlobalStore

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

GlobalStore responsible ofsaving agents global state like variables in form of key values pairs

func GetInstance

func GetInstance() *GlobalStore

GetInstance return the current using store instance

func (*GlobalStore) Get

func (gs *GlobalStore) Get(agentID string, key string) string

Get return a value for a given Agent key

func (*GlobalStore) Set

func (gs *GlobalStore) Set(agentID string, key string, value string)

Set add a new key value pair in the stare

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL