dataext

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectMerge added in v0.0.20

func ObjectMerge[T1 any, T2 any](base T1, override T2) T1

func StructHash added in v0.0.32

func StructHash(dat any, opt ...StructHashOptions) (r []byte, err error)

Types

type BufferedReadCloser

type BufferedReadCloser interface {
	io.ReadCloser
	BufferedAll() ([]byte, error)
	Reset() error
}

func NewBufferedReadCloser

func NewBufferedReadCloser(sub io.ReadCloser) BufferedReadCloser

type LRUMap

type LRUMap[TData any] struct {
	// contains filtered or unexported fields
}

func NewLRUMap

func NewLRUMap[TData any](size int) *LRUMap[TData]

func (*LRUMap[TData]) Put

func (c *LRUMap[TData]) Put(key string, value TData)

func (*LRUMap[TData]) Size

func (c *LRUMap[TData]) Size() int

func (*LRUMap[TData]) TryGet

func (c *LRUMap[TData]) TryGet(key string) (TData, bool)

type StructHashOptions added in v0.0.32

type StructHashOptions struct {
	HashAlgo    hash.Hash
	Tag         *string
	SkipChannel bool
	SkipFunc    bool
}

type SyncSet added in v0.0.43

type SyncSet[TData comparable] struct {
	// contains filtered or unexported fields
}

func (*SyncSet[TData]) Add added in v0.0.43

func (s *SyncSet[TData]) Add(value TData) bool

func (*SyncSet[TData]) AddAll added in v0.0.43

func (s *SyncSet[TData]) AddAll(values []TData)

func (*SyncSet[TData]) Contains added in v0.0.43

func (s *SyncSet[TData]) Contains(value TData) bool

func (*SyncSet[TData]) Get added in v0.0.43

func (s *SyncSet[TData]) Get() []TData

Jump to

Keyboard shortcuts

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