configfx

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(new)

Module is to provide dependency of Configuration to main app

Functions

This section is empty.

Types

type AthenaDriverConfig

type AthenaDriverConfig struct {
	// OutputConfig is for the output section of the config
	OutputConfig ReaderOutputConfig
	// InputConfig is for the input section of the config
	InputConfig ReaderInputConfig
	// QueryString is the query string
	QueryString []string
	// DrvConfig is the datastructure of Driver Config
	DrvConfig *drv.Config
}

AthenaDriverConfig is Athena Driver Configuration

type Params

type Params struct {
	fx.In

	LC fx.Lifecycle
}

Params defines the dependencies or inputs

type ReaderInputConfig

type ReaderInputConfig struct {
	// Bucket is the output bucket
	Bucket string `yaml:"bucket"`
	// Region is AWS region
	Region string `yaml:"region"`
	// Database is the name of the DB
	Database string `yaml:"database"`
	// Admin is for write mode
	Admin bool `yaml:"admin"`
}

ReaderInputConfig is to represent the input section of configuration file

type ReaderOutputConfig

type ReaderOutputConfig struct {
	// Render is for the output format
	Render string `yaml:"render"`
	// Page is for the pagination
	Page int `yaml:"pagesize"`
	// Style is output style
	Style string `yaml:"style"`
	// Rowonly is for displaying header or not
	Rowonly bool `yaml:"rowonly"`
	// Moneywise is for displaying spending or not
	Moneywise bool `yaml:"moneywise"`
	// Fastfail is for multiple queries
	Fastfail bool `yaml:"fastfail"`
}

ReaderOutputConfig is to represent the output section of configuration file

type Result

type Result struct {
	fx.Out

	// MyConfig is the current AthenaDriver Config
	MyConfig AthenaDriverConfig
}

Result defines output

Jump to

Keyboard shortcuts

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