conmap

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

README

This came about because I wanted to have concurrent maps but felt bad about casting out of them.

To re-generate the gen-conmaps.go with updates from conmaps.go:

go get github.com/justnoise/genny
cd $GOPATH/src/github.com/justnoise/genny
go install
cd $GOPATH/src/github.com/elotl/kip/pkg/util/conmap
go generate

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyType

type KeyType generic.Type

type KeyTypeValueType

type KeyTypeValueType struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewKeyTypeValueType

func NewKeyTypeValueType() *KeyTypeValueType

func (*KeyTypeValueType) Delete

func (m *KeyTypeValueType) Delete(key KeyType)

func (*KeyTypeValueType) Get

func (m *KeyTypeValueType) Get(key KeyType) ValueType

func (*KeyTypeValueType) GetOK

func (m *KeyTypeValueType) GetOK(key KeyType) (ValueType, bool)

func (*KeyTypeValueType) Items

func (*KeyTypeValueType) Len

func (m *KeyTypeValueType) Len() int

func (*KeyTypeValueType) Set

func (m *KeyTypeValueType) Set(key KeyType, value ValueType)

type NodeKeyTypeValueType

type NodeKeyTypeValueType struct {
	Key   KeyType
	Value ValueType
}

type NodeStringTimeTime

type NodeStringTimeTime struct {
	Key   string
	Value time.Time
}

type StringTimeTime

type StringTimeTime struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewStringTimeTime

func NewStringTimeTime() *StringTimeTime

func (*StringTimeTime) Delete

func (m *StringTimeTime) Delete(key string)

func (*StringTimeTime) Get

func (m *StringTimeTime) Get(key string) time.Time

func (*StringTimeTime) GetOK

func (m *StringTimeTime) GetOK(key string) (time.Time, bool)

func (*StringTimeTime) Items

func (m *StringTimeTime) Items() []NodeStringTimeTime

func (*StringTimeTime) Len

func (m *StringTimeTime) Len() int

func (*StringTimeTime) Set

func (m *StringTimeTime) Set(key string, value time.Time)

type ValueType

type ValueType generic.Type

Jump to

Keyboard shortcuts

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