syncstructure

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: AGPL-3.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 Queue

type Queue[T any] struct {
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue[T any](e ...T) *Queue[T]

func (*Queue[T]) Pop

func (s *Queue[T]) Pop() (value T, ok bool)

func (*Queue[T]) Push

func (s *Queue[T]) Push(value T)

type QueueMap

type QueueMap[T any] struct {
	// contains filtered or unexported fields
}

func NewQueueMap

func NewQueueMap[T any]() *QueueMap[T]

func (*QueueMap[T]) Delete

func (s *QueueMap[T]) Delete(name string)

func (*QueueMap[T]) Pull

func (s *QueueMap[T]) Pull(key string) (value T, ok bool)

func (*QueueMap[T]) Push

func (s *QueueMap[T]) Push(key string, value T)

type SyncMap

type SyncMap[T any] struct {
	// contains filtered or unexported fields
}

func NewSyncMap

func NewSyncMap[T any]() *SyncMap[T]

func (*SyncMap[T]) Get

func (s *SyncMap[T]) Get(key string) (value T, ok bool)

func (*SyncMap[T]) Set

func (s *SyncMap[T]) Set(key string, value T)

func (*SyncMap[T]) Unset

func (s *SyncMap[T]) Unset(name string) (value T, ok bool)

Jump to

Keyboard shortcuts

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