conf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FreshnessConf

type FreshnessConf struct {
	Targets []TableFreshnessCheckerConf
}

type LastUpdateConf

type LastUpdateConf struct {
	Schemas     []string
	Since       time.Duration // default "public"
	TagMappings []LastUpdateTagMappings
}

func (LastUpdateConf) SchemasMap

func (l LastUpdateConf) SchemasMap() map[string]struct{}

type LastUpdateMatch

type LastUpdateMatch string
const (
	IsPrefixMatchType LastUpdateMatch = "is_prefix"
	IsExactMatchType  LastUpdateMatch = "is_exact"
)

type LastUpdateTagMappings

type LastUpdateTagMappings struct {
	Target    string
	MatchType LastUpdateMatch
	Tag       string
}

type StaticConf

type StaticConf struct {
	LastUpdates *LastUpdateConf
	Freshness   *FreshnessConf
}

func NewFromYaml

func NewFromYaml(data []byte) (*StaticConf, error)

func (*StaticConf) SetDefaults

func (c *StaticConf) SetDefaults()

type TableFreshnessCheckerConf

type TableFreshnessCheckerConf struct {
	Database string
	Schema   string
	Table    string
	Column   string
}

Jump to

Keyboard shortcuts

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