cache

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LastEvents = &SafeEventMap{M: make(map[string]*dataobj.Event)}
View Source
var StrategyMap = &SafeStrategyMap{M: make(map[int64]dataobj.Strategy)}

Functions

This section is empty.

Types

type SafeEventMap

type SafeEventMap struct {
	sync.RWMutex
	M map[string]*dataobj.Event
}

func (*SafeEventMap) Get

func (this *SafeEventMap) Get(key string) (*dataobj.Event, bool)

func (*SafeEventMap) Len

func (this *SafeEventMap) Len() int

func (*SafeEventMap) Set

func (this *SafeEventMap) Set(key string, event *dataobj.Event)

type SafeStrategyMap

type SafeStrategyMap struct {
	sync.RWMutex
	M map[int64]dataobj.Strategy
}

func (*SafeStrategyMap) Get

func (this *SafeStrategyMap) Get(key int64) (dataobj.Strategy, bool)

func (*SafeStrategyMap) ReInit

func (this *SafeStrategyMap) ReInit(m map[int64]dataobj.Strategy)

Jump to

Keyboard shortcuts

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