parsedmarc.sink.util
๐
Console
๐
Bases: Sink
Sink that writes reports to the console as JSON.
New in 9.0.
| PARAMETER | DESCRIPTION |
|---|---|
name |
profile name for this instance, ideally should be unqiue to easily idenfity this instance and any log messages it produces
TYPE:
|
config |
config for this instance |
ConsoleConfig
๐
Noop
๐
Bases: Sink
Sink that does nothing.
New in 9.0.
| PARAMETER | DESCRIPTION |
|---|---|
name |
profile name for this instance, ideally should be unqiue to easily idenfity this instance and any log messages it produces
TYPE:
|
config |
config for this instance |
cleanup
๐
Perform cleanup on this source.
This method is called as a part of self.shutdown.
Child classes can override this method to implement their own logic.
It is still recomended to call super().cleanup().
setup
๐
Perform setup actions to ensure this Sink is ready to produce.
Child classes can override this method to implement their own logic.
Child classes should
- check that
self._state == AppState.SHUTDOWN - set
self._state = AppState.SETTING_UP - do their setup actions
- if an error occurs set
self._state = AppState.SETUP_ERROR - otherwise set
self._state = AppState.RUNNING
shutdown
๐
validate_config
๐
Validate the config of this instance
Child classes can override this method to implement their own logic.
It is still recomended to call super().validate_config().