Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶ added in v0.2.1
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 ¶ added in v0.2.1
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 ¶ added in v0.2.1
type PrivSettings interface { // GetPriv, may be nil GetPriv() *crypto.Secp256k1PrivateKey SetPriv(p *crypto.Secp256k1PrivateKey) error }
type Step ¶ added in v0.2.1
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 ¶ added in v0.2.1
type WithHostPriv ¶ added in v0.2.1
type WithHostPriv interface {
GetHostPriv() *crypto.Secp256k1PrivateKey
}
Click to show internal directories.
Click to hide internal directories.