schemawatch

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package schemawatch contains code to allow the schema of a target database to be queried and monitored.

Index

Constants

This section is empty.

Variables

Set is used by Wire.

Functions

func ProvideFactory

func ProvideFactory(
	ctx *stopper.Context, cfg *Config, pool *types.TargetPool, d *diag.Diagnostics,
) (types.Watchers, error)

ProvideFactory is called by Wire to construct the Watchers factory.

Types

type Config added in v1.0.5

type Config struct {
	RefreshDelay time.Duration
}

Config controls the schemawatch behavior.

func (*Config) Bind added in v1.0.5

func (c *Config) Bind(f *pflag.FlagSet)

Bind adds configuration flags to the set.

func (*Config) Preflight added in v1.0.5

func (c *Config) Preflight() error

Preflight validates the configuration.

Jump to

Keyboard shortcuts

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