Discover Packages
github.com/blep-ai/automi
examples
error
command
Version:
v0.1.0-alpha.0
Opens a new window with list of versions in this module.
Published: Jul 31, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Automi Error Handling
This example shows how to setup Automi to handle stream errors by defining a
function that will be used to handle stream errors as they are generated as shown
below.
stream.WithErrorFunc(func(err api.StreamError) {
log.Printf("ERROR: %v", err)
})
The function receives a value of type api.StreamError
, which implements error
,
every time a stream error is injected in the stream.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.