dataext

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 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 LRUData

type LRUData interface{}

type LRUMap

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

func NewLRUMap

func NewLRUMap(size int) *LRUMap

func (*LRUMap) Put

func (c *LRUMap) Put(key string, value LRUData)

func (*LRUMap) Size

func (c *LRUMap) Size() int

func (*LRUMap) TryGet

func (c *LRUMap) TryGet(key string) (LRUData, bool)

type StructHashOptions added in v0.0.32

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

type SyncStringSet

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

func (*SyncStringSet) Add

func (s *SyncStringSet) Add(value string) bool

func (*SyncStringSet) AddAll

func (s *SyncStringSet) AddAll(values []string)

func (*SyncStringSet) Contains

func (s *SyncStringSet) Contains(value string) bool

func (*SyncStringSet) Get

func (s *SyncStringSet) Get() []string

Jump to

Keyboard shortcuts

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