-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optional NATS config / event publishing (#31)
* Not all projects will need event publishing, so it should be configurable such that ones that don't intend to use it don't need to have NATS credentials configured for them. Signed-off-by: Jacob See <[email protected]> * Switch from nil pointer to an enabled field on the struct Signed-off-by: Jacob See <[email protected]> --------- Signed-off-by: Jacob See <[email protected]>
- Loading branch information
Showing
4 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package eventsx | ||
|
||
import "errors" | ||
|
||
// ErrPublishNotEnabled represents an error state where an event publish was attempted despite not being enabled | ||
var ErrPublishNotEnabled = errors.New("event publishing is not enabled") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters