fix(pdfengines): selection of PDF engines and add a new module interface for modules that want to print system message on startup

This commit is contained in:
Julien Neuhart
2021-12-07 17:05:54 +01:00
parent 7149c421cf
commit 76f17cb6d7
4 changed files with 77 additions and 12 deletions

View File

@@ -69,6 +69,12 @@ type App interface {
Stop(ctx context.Context) error
}
// SystemLogger is a module interface for modules which want to display
// messages on startup.
type SystemLogger interface {
SystemMessages() []string
}
// MustRegisterModule registers a module.
//
// To register a module, create an init() method in the module main go file: