Browse Source

Added deinitialization interface.

This will be used in the future by extensions that require teardown
functionality.
master
Benjamin Shelton 1 month ago
parent
commit
44b62736cf
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      extension.go

+ 7
- 0
extension.go View File

@ -27,6 +27,13 @@ type Extension interface {
Init(app Application)
}
type ExtensionDeinitializer interface {
// Deinit this extension. This is called before Capstan finalizes all
// connections and shuts down. Extensions that implement this interface will
// be given an opportunity to perform teardowns required.
Deinit(app Application)
}
type MiddlewareExtension interface {
Extension


Loading…
Cancel
Save