util

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2020 License: GPL-3.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaltXOR

func SaltXOR(data, salt []byte) (result []byte)

SaltXOR xors bits of data with salt repeating salt if necessary.

Types

type SyncWorkerPool

type SyncWorkerPool struct{}

SyncWorkerPool represents synchronous worker pool.

func (SyncWorkerPool) Submit

func (SyncWorkerPool) Submit(fn func()) error

Submit executes passed function immediately.

Always returns nil.

type WorkerPool

type WorkerPool interface {
	// Submit queues a function for execution
	// in a separate routine.
	//
	// Implementation must return any error encountered
	// that prevented the function from being queued.
	Submit(func()) error
}

WorkerPool represents the tool for control the execution of go-routine pool.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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