Documentation ¶
Index ¶
Constants ¶
View Source
const Md5 = "md5"
View Source
const Sha1 = "sha1"
Variables ¶
View Source
var CrcMask = uint32(0xffffffff) >> 6
View Source
var ErrorFullChan = errors.New("full chan error")
View Source
var ErrorInvalidParameter = errors.New("invalid parameter")
View Source
var ErrorSliceNotEqualLength = errors.New("two slices not equal length")
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 IFanOut ¶
type IFanOut[T any] interface { Produce() chan T Compute(chan T) chan T Merge(...chan T) chan T }
type IPriorityChan ¶
type IPriorityChan[T any] interface { Put(event T, t PriorityType) TryPut(event T, t PriorityType) error PutWithTimeout(event T, t PriorityType, timeout time.Duration) error Get() T TryGet() T GetWithTimeout(timeout time.Duration) (T, error) HandleSignal(highHandler PriorityHandler[T], lowHandler PriorityHandler[T]) error }
type PriorityHandler ¶
type PriorityType ¶
type PriorityType int
const HighPriorityType PriorityType = 0
const LowPriorityType PriorityType = 1
type WaitGroupHandler ¶
type WaitGroupHandler func() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.