Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigKeyVersion = "main.version" ConfigKeyCommit = "main.commit" ConfigKeyDate = "main.date" ConfigKeyBuiltBy = "main.builtBy" LocalBuild = DefaultBuiltBy )
View Source
const ( DefaultVersion = "0.0.0" DefaultCommit = "none" DefaultDate = "unknown" DefaultBuiltBy = "local" )
View Source
const ( PowerpipeShortDescription = "Powerpipe" PowerpipeLongDescription = "Powerpipe." )
TODO
View Source
const ( EnvListen = "POWERPIPE_LISTEN" EnvPort = "POWERPIPE_PORT" // TODO KAI KEEP THIS? // EnvConfigDump is an undocumented variable is subject to change in the future EnvConfigDump = "POWERPIPE_CONFIG_DUMP" )
View Source
const (
DatabaseDefaultQueryTimeout = 300
)
Variables ¶
View Source
var CheckOutputModeIds = map[CheckOutputMode][]string{ CheckOutputModeText: {constants.OutputFormatText}, CheckOutputModeBrief: {constants.OutputFormatBrief}, CheckOutputModeCsv: {constants.OutputFormatCSV}, CheckOutputModeHTM: {constants.OutputFormatHTML}, CheckOutputModeJSON: {constants.OutputFormatJSON}, CheckOutputModeMd: {constants.OutputFormatMD}, CheckOutputModeTest: {constants.OutputFormatText}, CheckOutputModeSnapshot: {constants.OutputFormatSnapshot}, CheckOutputModeNone: {constants.OutputFormatNone}, }
View Source
var DashboardOutputModeIds = map[DashboardOutputMode][]string{ DashboardOutputModeSnapshot: {constants.OutputFormatSnapshot}, DashboardOutputModeSnapshotShort: {constants.OutputFormatSnapshotShort}, DashboardOutputModeNone: {constants.OutputFormatNone}, }
View Source
var OutputModeIds = map[OutputMode][]string{ OutputModePretty: {constants.OutputFormatPretty}, OutputModePlain: {constants.OutputFormatPlain}, OutputModeYaml: {constants.OutputFormatYAML}, OutputModeJson: {constants.OutputFormatJSON}, }
View Source
var QueryOutputModeIds = map[QueryOutputMode][]string{ QueryOutputModeCsv: {constants.OutputFormatCSV}, QueryOutputModeJson: {constants.OutputFormatJSON}, QueryOutputModeLine: {constants.OutputFormatLine}, QueryOutputModeSnapshot: {constants.OutputFormatSnapshot}, QueryOutputModeSnapshotShort: {constants.OutputFormatSnapshotShort}, QueryOutputModeTable: {constants.OutputFormatTable}, QueryOutputModeNone: {constants.OutputFormatNone}, }
Functions ¶
func FlagValues ¶
func FlagValues[T comparable](mappings map[T][]string) []string
Types ¶
type CheckOutputMode ¶
type CheckOutputMode enumflag.Flag
const ( CheckOutputModeText CheckOutputMode = iota CheckOutputModeBrief CheckOutputMode = iota CheckOutputModeCsv CheckOutputModeHTM CheckOutputModeJSON CheckOutputModeMd CheckOutputModeTest CheckOutputModeSnapshot CheckOutputModeNone )
type DashboardOutputMode ¶
type DashboardOutputMode enumflag.Flag
const ( DashboardOutputModeSnapshot DashboardOutputMode = iota DashboardOutputModeSnapshotShort DashboardOutputModeNone )
type ErrorNoModDefinition ¶
type ErrorNoModDefinition struct{}
func (ErrorNoModDefinition) Error ¶
func (e ErrorNoModDefinition) Error() string
type OutputMode ¶
type OutputMode enumflag.Flag
const ( OutputModePretty OutputMode = iota OutputModePlain OutputModeYaml OutputModeJson )
type QueryOutputMode ¶
type QueryOutputMode enumflag.Flag
const ( QueryOutputModeCsv QueryOutputMode = iota QueryOutputModeJson QueryOutputModeLine QueryOutputModeSnapshot QueryOutputModeSnapshotShort QueryOutputModeTable QueryOutputModeNone )
Click to show internal directories.
Click to hide internal directories.