types

package
v1.0.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Md5 = "md5"
View Source
const Sha1 = "sha1"

Variables

View Source
var CrcMask = uint32(0xffffffff) >> 6
View Source
var ErrorTimeout = errors.New("time out error")

Functions

func SetCRCMask

func SetCRCMask(n int)

Types

type ErrHandler

type ErrHandler func(err any)

type FetchHandler

type FetchHandler[T any] func(context.Context, chan T)

type Float

type Float interface {
	~float32 | ~float64
}

type IComparator

type IComparator interface {
	Len() int
	Less(i, j int) bool
	Swap(i, j int)
}

type IFanOut

type IFanOut[T any] interface {
	Produce() chan T
	Compute(chan T) chan T
	Merge(...chan T) chan T
}

type Integer

type Integer interface {
	Signed | Unsigned
}

type Ordered

type Ordered interface {
	Integer | Float | ~string
}

type PriorityHandler

type PriorityHandler func() error

type Signed

type Signed interface {
	~int | ~int8 | ~int16 | ~int32 | ~int64
}

type Unsigned

type Unsigned interface {
	~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}

type WaitGroupHandler

type WaitGroupHandler func() error

Jump to

Keyboard shortcuts

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