statuschecker

package
v0.0.0-...-a06e19b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullStatus

type FullStatus struct {
	Nodes  *observer.GetNodesResponse
	Status *observer.ServerStatusResponse
}

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

func NewDumb

func NewDumb() *Handle

func (*Handle) Errors

func (h *Handle) Errors() chan error

func (*Handle) Run

func (h *Handle) Run(ctx context.Context)

func (*Handle) Statuses

func (h *Handle) Statuses() chan *FullStatus

func (*Handle) Stop

func (h *Handle) Stop()

type NewClientFn

type NewClientFn = func(context.Context, int) (observer.ObserverClient, error)

type ServerStatusCheckerInterface

type ServerStatusCheckerInterface interface {
	Run(context.Context)
	Stop()

	Errors() chan error
	Statuses() chan *FullStatus
}

Jump to

Keyboard shortcuts

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