repllag

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOMAIN = "repl.lag"

	OPT_SOURCE_ID            = "source-id"
	OPT_SOURCE_ROLE          = "source-role"
	OPT_TABLE                = "table"
	OPT_WRITER               = "writer"
	OPT_REPL_CHECK           = "repl-check"
	OPT_REPORT_NO_HEARTBEAT  = "report-no-heartbeat"
	OPT_REPORT_NOT_A_REPLICA = "report-not-a-replica"
	OPT_NETWORK_LATENCY      = "network-latency"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Lag

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

func NewLag

func NewLag(db *sql.DB) *Lag

func (*Lag) Collect

func (c *Lag) Collect(ctx context.Context, levelName string) ([]blip.MetricValue, error)

func (*Lag) Domain

func (c *Lag) Domain() string

func (*Lag) Help

func (c *Lag) Help() blip.CollectorHelp

func (*Lag) Prepare

func (c *Lag) Prepare(ctx context.Context, plan blip.Plan) (func(), error)

Jump to

Keyboard shortcuts

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