Documentation ¶
Overview ¶
Package misc contains Miscellaneous utility collections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // JSONCodec is a static JSON serializer and JSON deserializer handler. JSONCodec = json.ConfigFastest )
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { // NotifyError is an error notifier method within a concurrency environment that avoids falling in deadlock. NotifyError(err error) // Error method is a Error channel for cancellation. Error() <-chan error // Done method is a Done channel for cancellation. Done() <-chan struct{} // GracefulWait is a graceful shutdown method while the dependents are safely released. // It acts like a "WaitGroup.Wait" method. GracefulWait() // IncreaseWait is an acquiring method for a dependent. // It acts like a "WaitGroup.Add(1)" method. IncreaseWait() // DecreaseWait is an release method for a dependent. // It acts like a "WaitGroup.Done" method. DecreaseWait() }
Handler is context handler with sync.WaitGroup and error notifier.
func NewHandler ¶
NewHandler returns an initialized Handler interface.
Directories ¶
Path | Synopsis |
---|---|
Package backoff contains backoff algorithm helper functions.
|
Package backoff contains backoff algorithm helper functions. |
Package crypto contains encryption-decryption helper functions.
|
Package crypto contains encryption-decryption helper functions. |
Package dbg contains debugging helper functions.
|
Package dbg contains debugging helper functions. |
Package dttm contains date-time and locale-related data structures.
|
Package dttm contains date-time and locale-related data structures. |
Package han contains utility functions for regional issues in Korea.
|
Package han contains utility functions for regional issues in Korea. |
Package monetary contain monetary related data structures.
|
Package monetary contain monetary related data structures. |
Package networking is simple network utility collections.
|
Package networking is simple network utility collections. |
Package nums contain number related utility functions.
|
Package nums contain number related utility functions. |
Package q contain non-blocking unlimited queue data structures.
|
Package q contain non-blocking unlimited queue data structures. |
Package sqls contain database/sql related utility functions.
|
Package sqls contain database/sql related utility functions. |
Package strutil contain string conversion utility collection.
|
Package strutil contain string conversion utility collection. |
Package types contain misc data structures.
|
Package types contain misc data structures. |
Click to show internal directories.
Click to hide internal directories.