Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error string
Error is an implementation for the error interface that allow you to declare exported globals with the `const` keyword.
TL;DR: const ErrSomething errutils.Error = "something is an error"
type ErrorHandler ¶
type ErrorHandler interface { // HandleError allow the interactor implementation to be notified about unexpected situations. HandleError(ctx context.Context, err error) error }
ErrorHandler describes that an object able to handle error use-cases for its purpose.
For e.g. if the component is a pubsub subscription event handler, then implementing ErrorHandler means it suppose to handle unexpected use-cases such as connection interruption.
Click to show internal directories.
Click to hide internal directories.