constants

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

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 (
	TailpipeDbName = "tailpipe.db"
	DbFileMaxAge   = 24 * time.Hour
)
View Source
const (
	TailpipeShortDescription = "Collect, store and analyze log data using SQL"
	TailpipeLongDescription  = `` /* 744-byte string literal not displayed */

)
View Source
const (
	TpID              = "tp_id"
	TpSourceType      = "tp_source_type"
	TpSourceName      = "tp_source_name"
	TpSourceLocation  = "tp_source_location"
	TpIngestTimestamp = "tp_ingest_timestamp"
	TpTimestamp       = "tp_timestamp"
	TpSourceIP        = "tp_source_ip"
	TpDestinationIP   = "tp_destination_ip"
	TpTable           = "tp_table"
	TpPartition       = "tp_partition"
	TpIndex           = "tp_index"
	TpDate            = "tp_date"
	TpAkas            = "tp_akas"
	TpIps             = "tp_ips"
	TpTags            = "tp_tags"
	TpDomains         = "tp_domains"
	TpEmails          = "tp_emails"
	TpUsernames       = "tp_usernames"
)
View Source
const (
	HistoryFile = "history.json" // File to store historical data
	HistorySize = 500            // Number of historical records to store
)

Constants for History

View Source
const (
	//CmdTableList        = ".tables"             // List all tables
	CmdOutput = ".output" // Set output mode
	//CmdTiming           = ".timing"             // Toggle query timer
	CmdHeaders   = ".header"    // Toggle headers output
	CmdSeparator = ".separator" // Set the column separator
	CmdExit      = ".exit"      // Exit the interactive prompt
	CmdQuit      = ".quit"      // Alias for .exit
	//CmdInspect          = ".inspect"            // inspect
	CmdMulti        = ".multi"        // toggle multi line query
	CmdClear        = ".clear"        // clear the console
	CmdHelp         = ".help"         // list all meta commands
	CmdAutoComplete = ".autocomplete" // enable or disable auto complete
)
View Source
const (
	CorePluginName       = "core"
	CorePluginFullName   = "hub.tailpipe.io/plugins/turbot/core@latest"
	MinCorePluginVersion = "v0.1.0-rc.4"
	TailpipeHubOCIBase   = "hub.tailpipe.io/"
)
View Source
const (
	EnvPluginStartTimeout = "TAILPIPE_PLUGIN_START_TIMEOUT"
)

Variables

View Source
var DuckDbExtensions = []string{"json", "inet"}
View Source
var GrokConfigProperties = []string{"log_format", "file_layout"}
View Source
var SourceFileExtensions = []string{".jsonl"}

Functions

func FlagValues

func FlagValues[T comparable](mappings map[T][]string) []string

Types

type ConnectOutputMode

type ConnectOutputMode enumflag.Flag
const (
	ConnectOutputModeJson ConnectOutputMode = iota
	ConnectOutputModeText
)

type PluginOutputMode

type PluginOutputMode enumflag.Flag
const (
	PluginOutputModeJson PluginOutputMode = iota
	PluginOutputModePretty
	PluginOutputModePlain
)

type QueryOutputMode

type QueryOutputMode enumflag.Flag
const (
	QueryOutputModeCsv QueryOutputMode = iota
	QueryOutputModeJson
	QueryOutputModeLine
	QueryOutputModeTable
)

Jump to

Keyboard shortcuts

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