Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextKey ¶
type ContextKey byte
ContextKey is a type to differentiate values from this package from other values when used as a key in a context key-value pair
const ( // PROCESSING is a key for a context value that should either be a buffered channel of struct{} or sync.Locker. These objects are used to limit the number of active processing threads. If unset processing run as soon as called. PROCESSING ContextKey = 'p' // TIMEOUT is a key for a context value that is expected to be a time.Duration. It is the time allotted to the processing of a file, if nil no time limit TIMEOUT ContextKey = 't' )
Click to show internal directories.
Click to hide internal directories.