monitoring

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Config ReplSetConfig
}

type Monitoring

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

func NewMonitoring

func NewMonitoring(cfg *config.Config) *Monitoring

func (*Monitoring) Start

func (m *Monitoring) Start(ctx context.Context) error

type ReplMembers

type ReplMembers struct {
	Name       string
	StateStr   string
	OptimeDate time.Time
}

type ReplSetConfig

type ReplSetConfig struct {
	Members []Topology
}

type ReplStatus

type ReplStatus struct {
	Members []*ReplMembers
}

type Topology

type Topology struct {
	Host string
}

Jump to

Keyboard shortcuts

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