config

package
v0.0.0-...-4224984 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 7 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 {
	Project []Project
}

type Dataset

type Dataset struct {
	ID          string
	TableConfig []TableConfig
}

type DurationThreshold

type DurationThreshold struct {
	time.Duration
}

func (DurationThreshold) MarshalText

func (d DurationThreshold) MarshalText() (text []byte, err error)

func (*DurationThreshold) UnmarshalText

func (d *DurationThreshold) UnmarshalText(text []byte) error

type FreshnessResult

type FreshnessResult struct {
	Table  string
	Reason []string
}

func CheckFreshness

func CheckFreshness(config Config, current time.Time, opts ...option.ClientOption) (oldTables []FreshnessResult, err error)

CheckFreshness returns old tables whose last modified time is oldeer than time threshold on the config file.

type Project

type Project struct {
	ID      string
	Dataset []Dataset
}

type TableConfig

type TableConfig struct {
	Table             string
	DateForShards     string
	TimeThreshold     *TimeThreshold
	DurationThreshold *DurationThreshold
}

type TimeThreshold

type TimeThreshold struct {
	time.Time
}

func (TimeThreshold) MarshalText

func (t TimeThreshold) MarshalText() (text []byte, err error)

func (*TimeThreshold) UnmarshalText

func (t *TimeThreshold) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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