Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶
type Control interface { // RegisterStop register a callback for the controller to shutdown a background task of a command // The command can be running the background task in some other go routine after returning. RegisterStop(onStop OnStop) // Step creates a job that can be stepped into by the controller. // It blocks until the step is consumed. The step itself can schedule next steps Step(step Step) error }
type OnStop ¶
OnStop is a function that is proposed by the command, and called by the controller to end the command. The context is used to limit the stop execution
type PrivSettings ¶
type PrivSettings interface { // GetPriv, may be nil GetPriv() *crypto.Secp256k1PrivateKey SetPriv(p *crypto.Secp256k1PrivateKey) error }
type Step ¶
Step is a function that is proposed by the command, and can be stepped into by the controller. The context is used to limit the step execution
type WithEnrNode ¶
type WithHostPriv ¶
type WithHostPriv interface {
GetHostPriv() *crypto.Secp256k1PrivateKey
}
Click to show internal directories.
Click to hide internal directories.