isync

package
v0.0.0-...-fa1f22e Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Incrementer

type Incrementer[T constraints.Integer] struct {
	// contains filtered or unexported fields
}

func NewIncrementer

func NewIncrementer[T constraints.Integer](data T) *Incrementer[T]

func (*Incrementer[T]) Increment

func (i *Incrementer[T]) Increment() T

type List

type List[T comparable] struct {
	// contains filtered or unexported fields
}

func NewList

func NewList[T comparable]() *List[T]

func (*List[T]) Add

func (l *List[T]) Add(element T) uint

func (*List[T]) Clear

func (l *List[T]) Clear()

func (*List[T]) Clone

func (l *List[T]) Clone() []T

func (*List[T]) Get

func (l *List[T]) Get(index uint) T

func (*List[T]) Remove

func (l *List[T]) Remove(element T) uint

func (*List[T]) RemoveByIndex

func (l *List[T]) RemoveByIndex(index uint) T

func (*List[T]) Set

func (l *List[T]) Set(data []T)

type Map

type Map[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap[K comparable, V any]() *Map[K, V]

func (*Map[K, V]) Clear

func (m *Map[K, V]) Clear()

func (*Map[K, V]) Clone

func (m *Map[K, V]) Clone() map[K]V

func (*Map[K, V]) Count

func (m *Map[K, V]) Count() int

func (*Map[K, V]) Delete

func (m *Map[K, V]) Delete(k K)

func (*Map[K, V]) Get

func (m *Map[K, V]) Get(k K) V

func (*Map[K, V]) Set

func (m *Map[K, V]) Set(k K, v V)

type ReadWriter

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

func NewReadWriter

func NewReadWriter[T any]() *ReadWriter[T]

func (*ReadWriter[_]) Close

func (rw *ReadWriter[_]) Close()

func (*ReadWriter[_]) Closed

func (rw *ReadWriter[_]) Closed() bool

func (*ReadWriter[T]) Read

func (rw *ReadWriter[T]) Read() T

func (*ReadWriter[T]) Write

func (rw *ReadWriter[T]) Write(data T)

type SetGetter

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

func NewSetGetter

func NewSetGetter[T any]() *SetGetter[T]

func (*SetGetter[T]) Exchange

func (sg *SetGetter[T]) Exchange(data T) T

func (*SetGetter[T]) Get

func (sg *SetGetter[T]) Get() T

func (*SetGetter[T]) Set

func (sg *SetGetter[T]) Set(data T)

Jump to

Keyboard shortcuts

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