container

package
v0.0.0-...-b8f6862 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SynchronizedList

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

func NewSynchronizedList

func NewSynchronizedList() *SynchronizedList

func (*SynchronizedList) Len

func (sl *SynchronizedList) Len() (n int)

func (*SynchronizedList) PopBack

func (sl *SynchronizedList) PopBack() (v interface{})

func (*SynchronizedList) PopFront

func (sl *SynchronizedList) PopFront() (v interface{})

func (*SynchronizedList) PushBack

func (sl *SynchronizedList) PushBack(v interface{})

func (*SynchronizedList) PushFront

func (sl *SynchronizedList) PushFront(v interface{})

type SynchronizedMap

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

func NewSynchronizedMap

func NewSynchronizedMap() *SynchronizedMap

NewSynchronizedMap return new SynchronizedMap

func (*SynchronizedMap) Delete

func (m *SynchronizedMap) Delete(k interface{})

Delete the given key and value.

func (*SynchronizedMap) Foreach

func (m *SynchronizedMap) Foreach(cb func(k, v interface{}))

func (*SynchronizedMap) Get

func (m *SynchronizedMap) Get(k interface{}) interface{}

Get from maps return the k's value

func (*SynchronizedMap) IsExist

func (m *SynchronizedMap) IsExist(k interface{}) bool

Returns true if k is exist in the map.

func (*SynchronizedMap) Items

func (m *SynchronizedMap) Items() map[interface{}]interface{}

Items returns all items in SynchronizedMap.

func (*SynchronizedMap) Set

func (m *SynchronizedMap) Set(k interface{}, v interface{}) bool

Maps the given key and value. Returns false if the key is already in the map and changes nothing.

Directories

Path Synopsis
queue queue
queue queue
recycler
recycler

Jump to

Keyboard shortcuts

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