# Packages
No description provided by the author
# Functions
AdaptStdLogger transforms an StdLogger into a CompleteLogger if needed.
AdaptTestLogger transforms a TestLogger into a CompleteLogger if needed.
BoolPtr transforms a bool into a *bool.
No description provided by the author
ByteHamming84Decode hamming 8/4 decodes.
ByteParity returns the byte parity.
BytePtr transforms a byte into a *byte.
BytesPad pads the slice of bytes with additionnal options.
ChainHTTPMiddlewares chains HTTP middlewares.
ChainHTTPMiddlewaresWithPrefix chains HTTP middlewares if one of prefixes is present.
ConvertPCMBitDepth converts the PCM bit depth.
Copy is a copy with a context.
CopyFile is a cancellable copy of a local file to a local or remote location.
DebugMutexWithDeadlockDetection allows detecting deadlock for all mutex locks.
DebugMutexWithLockLogging allows logging all mutex locks.
No description provided by the author
DurationPtr transforms a time.Duration into a *time.Duration.
ErrorCause returns the cause of an error.
ExecCmd executes a cmd The process will be stopped when the worker stops.
FlagCmd retrieves the command from the input Args.
Float64Ptr transforms a float64 into a *float64.
HTTPMiddlewareBasicAuth adds basic HTTP auth to an HTTP handler.
HTTPMiddlewareContentType adds a content type to an HTTP handler.
HTTPMiddlewareCORSHeaders adds CORS headers to an HTTP handler.
HTTPMiddlewareHeaders adds headers to an HTTP handler.
No description provided by the author
Int64Ptr transforms an int64 into an *int64.
IntPtr transforms an int into an *int.
No description provided by the author
No description provided by the author
LocalCopyFileFunc is the local CopyFileFunc that allows doing cross partition copies.
LoggerLevelFromString creates a logger level from string.
LoggerSignalHandler returns a SignalHandler that logs the signal.
No description provided by the author
MoveFile is a cancellable move of a local file to a local or remote location.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewBiMap creates a new BiMap.
NewBitsWriter creates a new BitsWriter.
No description provided by the author
NewBufferPool creates a new BufferPool.
NewBytesIterator creates a new BytesIterator.
No description provided by the author
NewChan creates a new Chan.
NewCloser creates a new closer.
NewCtxReader creates a reader with a context.
NewDebugMutex creates a new debug mutex.
NewErrors creates new errors.
NewEventer creates a new eventer.
No description provided by the author
NewFlagStrings creates a new FlagStrings.
NewGoroutineLimiter creates a new GoroutineLimiter.
NewHTTPDownloader creates a new HTTPDownloader.
NewHTTPSender creates a new HTTP sender.
NewLimiter creates a new limiter.
NewPCMChannelsConverter creates a new PCMChannelsConverter.
NewPCMSampleRateConverter creates a new PCMSampleRateConverter.
NewPCMSilenceDetector creates a new silence detector.
No description provided by the author
NewRational creates a new rational.
NewStater creates a new stater.
No description provided by the author
NewTemplater creates a new templater.
No description provided by the author
No description provided by the author
NewTranslator creates a new Translator.
NewWorker builds a new worker.
NewWriterAdapter creates a new WriterAdapter.
NopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.
No description provided by the author
PadCut is a PadOption It indicates to the padder it must cut the input to the provided length if its original length is bigger.
PadLeft is a PadOption It indicates additionnal bytes have to be added to the left.
PadRight is a PadOption It indicates additionnal bytes have to be added to the right.
PCMLevel computes the PCM level of samples https://dsp.stackexchange.com/questions/2951/loudness-of-pcm-stream https://dsp.stackexchange.com/questions/290/getting-loudness-of-a-track-with-rms?noredirect=1&lq=1.
PCMNormalize normalizes the PCM samples.
RandStr generates a random string of length n https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang.
ServeHTTP spawns an HTTP server.
Sleep is a cancellable sleep.
SortInt64 sorts a slice of int64s in increasing order.
SortUint64 sorts a slice of uint64s in increasing order.
SSHCopyFileFunc is the SSH CopyFileFunc that allows doing SSH copies.
StrPad pads the string with additionnal options.
StrPtr transforms a string into a *string.
StrSlicePtr transforms a []string into a *[]string.
TermSignalHandler returns a SignalHandler that is executed only on a term signal.
TimePtr transforms a time.Time into a *time.Time.
UInt16Ptr transforms a uint16 into a *uint16.
UInt32Ptr transforms a uint32 into a *uint32.
UInt64Ptr transforms a uint64 into a *uint64.
UInt8Ptr transforms a uint8 into a *uint8.
Unzip unzips a src into a dst Possible src formats are: - /path/to/zip.zip - /path/to/zip.zip/root/path.
Zip zips a src into a dst Possible dst formats are: - /path/to/zip.zip - /path/to/zip.zip/root/path.
# Constants
Calling Add() only blocks if the chan has been started and the ctx has not been canceled.
Calling Add() never blocks.
Chan constants.
Chan constants.
Statuses.
Statuses.
Statuses.
Logger levels.
Logger levels.
Logger levels.
Logger levels.
Logger levels.
Stat names.
# Variables
Default modes.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BiMap represents a bidirectional map.
BitsWriter represents an object that can write individual bits into a writer in a developer-friendly way.
BitsWriterBatch allows to chain multiple Write* calls and check for error only once For more info see https://github.com/asticode/go-astikit/pull/6.
BitsWriterOptions represents BitsWriter options.
BufferPool represents a *bytes.Buffer pool.
BufferPoolItem represents a BufferPool item.
BytesIterator represents an object capable of iterating sequentially and safely through a slice of bytes.
Cache is an object capable of caching stuff while ensuring cumulated cached size never gets above a provided threshold.
No description provided by the author
Chan is an object capable of executing funcs in a specific order while controlling the conditions in which adding new funcs is blocking Check out ChanOptions for detailed options.
ChanOptions are Chan options.
ChanStats represents the chan stats.
Closer is an object that can close several things.
CtxReader represents a reader with a context.
DebugMutex represents a rwmutex capable of logging its actions to ease deadlock debugging.
Errors is an error containing multiple errors.
Eventer represents an object that can dispatch simple events (name + payload).
EventerOptions represents Eventer options.
No description provided by the author
ExecCmdOptions represents exec options.
ExecHandler represents an object capable of handling the execution of a cmd.
FIFOMutex is a mutex guaranteeing FIFO order.
FlagStrings represents a flag that can be set several times and stores unique string values.
GoroutineLimiter is an object capable of doing several things in parallel while maintaining the max number of things running in parallel under a threshold.
GoroutineLimiterOptions represents GoroutineLimiter options.
HTTPDownloader represents an object capable of downloading several HTTP srcs simultaneously and doing stuff to the results.
HTTPDownloaderOptions represents HTTPDownloader options.
No description provided by the author
HTTPSender represents an object capable of sending http requests.
HTTPSenderOptions represents HTTPSender options.
HTTPSendJSONOptions represents SendJSON options.
Limiter represents a limiter.
LimiterBucket represents a limiter bucket.
PCMChannelsConverter is an object of converting PCM's channels.
PCMSampleRateConverter is an object capable of converting a PCM's sample rate.
PCMSilenceDetector represents a PCM silence detector.
PCMSilenceDetectorOptions represents a PCM silence detector options.
Piper doesn't block on writes.
No description provided by the author
Rational represents a rational.
ServeHTTPOptions represents serve options.
Stater is an object that can compute and handle stats.
StaterOptions represents stater options.
StatMetadata represents a stat metadata.
StatOptions represents stat options.
StatValue represents a stat value.
No description provided by the author
Task represents a task.
Templater represents an object capable of storing and parsing templates.
No description provided by the author
No description provided by the author
Translator represents an object capable of translating stuff.
TranslatorOptions represents Translator options.
Worker represents an object capable of blocking, handling signals and stopping.
WorkerOptions represents worker options.
WriterAdapter represents an object that can adapt a Writer.
WriterAdapterOptions represents WriterAdapter options.
# Interfaces
No description provided by the author
CompleteLogger represents a complete logger.
HTTPClient represents an HTTP client.
SeverityCtxLogger represents a severity with context logger.
SeverityLogger represents a severity logger.
No description provided by the author
No description provided by the author
SSHSession represents an SSH Session.
StatValuer represents a stat valuer.
StdLogger represents a standard logger.
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CopyFileFunc represents a CopyFile func.
DebugMutexOpt represents a debug mutex option.
EventerHandler represents a function that can handle the payload of an event.
No description provided by the author
No description provided by the author
GoroutineLimiterFunc is a GoroutineLimiter func.
HTTPMiddleware represents an HTTP middleware.
HTTPResponseFunc is a func that can process an $http.Response.
No description provided by the author
HTTPSenderRetryFunc is a function that decides whether to retry an HTTP request.
No description provided by the author
LoggerLevel represents a logger level.
PadOption represents a Pad option.
PCMSampleFunc is a func that can process a sample.
SignalHandler represents a func that can handle a signal.
SortInt64Slice attaches the methods of Interface to []int64, sorting in increasing order.
SortUint64Slice attaches the methods of Interface to []uint64, sorting in increasing order.
SSHSessionFunc represents a func that can return an SSHSession.
StatsHandleFunc is a method that can handle stat values.
No description provided by the author
TaskFunc represents a function that can create a new task.