maintenance

package
v0.0.0-...-6f56f46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL