Documentation ¶
Index ¶
- Constants
- func BoolPtrToBool(ptr *bool) bool
- func FingerprintQuery(query string) (fp [21]byte)
- func IntPtrToInt(ptr *int64) int64
- func IntPtrToString(ptr *int64) int64
- func IsUtilityStmt(query string) ([]bool, error)
- func NormalizeQuery(query string, filterQueryText string, trackActivityQuerySize int) string
- func Reload() (reloadedPid int, err error)
- func StringPtrToString(ptr *string) string
- func TimePtrToTime(ptr *time.Time) time.Time
- func TimePtrToUnixTimestamp(ptr *time.Time) int64
- type Logger
- func (logger *Logger) PrintError(format string, args ...interface{})
- func (logger *Logger) PrintInfo(format string, args ...interface{})
- func (logger *Logger) PrintVerbose(format string, args ...interface{})
- func (logger *Logger) PrintWarning(format string, args ...interface{})
- func (logger *Logger) WithPrefix(prefix string) *Logger
- func (logger *Logger) WithPrefixAndRememberErrors(prefix string) *Logger
- type Timestamp
Constants ¶
View Source
const CollectorNameAndVersion = "pganalyze-collector " + CollectorVersion
View Source
const CollectorVersion = "0.37.1"
Variables ¶
This section is empty.
Functions ¶
func BoolPtrToBool ¶
func FingerprintQuery ¶
FingerprintQuery - Generates a unique SHA-1 fingerprint for the given query
func IntPtrToInt ¶
func IntPtrToString ¶
func IsUtilityStmt ¶
IsUtilityStmt determines whether each statement in the query text is a utility statement or a standard SELECT/INSERT/UPDATE/DELETE statement.
func NormalizeQuery ¶
func StringPtrToString ¶
func TimePtrToUnixTimestamp ¶
Types ¶
type Logger ¶
type Logger struct { Verbose bool Quiet bool Prefix *string Destination *log.Logger RememberErrors bool ErrorMessages []string }
func (*Logger) PrintError ¶
func (*Logger) PrintVerbose ¶
func (*Logger) PrintWarning ¶
func (*Logger) WithPrefix ¶
func (*Logger) WithPrefixAndRememberErrors ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.