Documentation
¶
Overview ¶
Package maintenance provides maintenance functionalities for the zetaclient.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShutdownListener ¶
type ShutdownListener struct {
// contains filtered or unexported fields
}
ShutdownListener is a struct that listens for scheduled shutdown notices via the observer operational flags
func NewShutdownListener ¶
func NewShutdownListener(client interfaces.ZetacoreClient, logger zerolog.Logger) *ShutdownListener
NewShutdownListener creates a new ShutdownListener.
func (*ShutdownListener) Listen ¶
func (o *ShutdownListener) Listen(ctx context.Context, action func())
func (*ShutdownListener) RunPreStartCheck ¶
func (o *ShutdownListener) RunPreStartCheck(ctx context.Context) error
RunPreStartCheck runs any checks that must run before fully starting zetaclient. Specifically this should be run before any TSS P2P is started.
type TSSListener ¶
type TSSListener struct {
// contains filtered or unexported fields
}
TSSListener is a struct that listens for TSS updates, new keygen, and new TSS key generation.
func NewTSSListener ¶
func NewTSSListener(client interfaces.ZetacoreClient, logger zerolog.Logger) *TSSListener
NewTSSListener creates a new TSSListener.
func (*TSSListener) Listen ¶
func (tl *TSSListener) Listen(ctx context.Context, action func())
Listen listens for any maintenance regarding TSS and calls action specified. Works in the background.
Click to show internal directories.
Click to hide internal directories.