mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-03 20:44:14 -04:00
Document exported funcs,types,interfaces and enable check. (#475)
* Include EXC0014 and fix issues. * Include EXC0012 and fix issues. Signed-off-by: Fabian Kammel <fk@edgeless.systems> Co-authored-by: Otto Bittner <cobittner@posteo.net>
This commit is contained in:
parent
c9873f2bfb
commit
0d12e37c96
74 changed files with 337 additions and 78 deletions
|
@ -10,6 +10,10 @@ import (
|
|||
"sync"
|
||||
)
|
||||
|
||||
// Cleaner can be used to stop a list of services gracefully.
|
||||
// To register an arbitrary amount of stoppers either use New or With.
|
||||
// Start needs to be called to ready the Cleaner, then Clean will activate it.
|
||||
// Done can be used to wait for Cleaner to run all registered stoppers.
|
||||
type Cleaner struct {
|
||||
stoppers []stopper
|
||||
stopC chan struct{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue