Problem
Currently the signature of the Start function is
func Start(options ...func(*Profile)) interface {
Stop()
}
Use case
The lifecycle in our case is managed by another library (fluent-bit-go)
- The Start() has to happen in lifecycle function
FLBPluginInit
- The Stop() has to happen in lifecycle function
FLBPluginExit
Proposal
have a named interface for Stop
type Stopper interface {
Stop()
}
So the Start will become
func Start(options ...func(*Profile)) Stopper
Problem
Currently the signature of the Start function is
Use case
The lifecycle in our case is managed by another library (fluent-bit-go)
FLBPluginInitFLBPluginExitProposal
have a named interface for Stop
So the Start will become