Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MkdirAllX ¶ added in v0.24.0
MkdirAllX calls os.MkdirAll with passed permissions but with +x for user and group. This makes created dir openable regardless of the passed permissions.
func NewSaltingWriter ¶ added in v0.14.1
NewSaltingWriter returns io.Writer instance that applies salt to written data and write the result to w.
func SaltXOROffset ¶ added in v0.14.1
SaltXOROffset xors bits of data with salt starting from off byte 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.
Click to show internal directories.
Click to hide internal directories.