config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: Apache-2.0 Imports: 4 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 string
	Queries []Query
	Slack   *notify.Slack
}

Config has configurations of BigQuery and Slack

func Parse

func Parse(file string) (*Config, error)

Parse parses config.yaml

type Query added in v0.2.0

type Query struct {
	SQL         string
	Slack       *notify.Slack
	ResultTable *ResultTable `yaml:"result_table"`
}

type ResultTable added in v0.10.0

type ResultTable struct {
	DatasetID        string `yaml:"dataset_id"`
	TableIDPrefix    string `yaml:"table_id_prefix"`
	ExpirationInDays int    `yaml:"expiration_in_days"`
}

Jump to

Keyboard shortcuts

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