postgres

package
v0.0.0-...-52457d5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const INSERT_STATEMENT = "" /* 187-byte string literal not displayed */

Variables

View Source
var REQUIRED_FIELDS = []string{"landscape", "project", "cluster", "uuid", "hostname", "time", "rule", "priority", "tags", "source"}

Functions

This section is empty.

Types

type ClusterIdentity

type ClusterIdentity struct {
	// contains filtered or unexported fields
}

type EventStruct

type EventStruct struct {
	Uuid         string                     `json:"uuid"`
	Output       string                     `json:"output"`
	Priority     string                     `json:"priority"`
	Rule         string                     `json:"rule"`
	Time         time.Time                  `json:"time"`
	OutputFields map[string]json.RawMessage `json:"output_fields"`
	Source       string                     `json:"source"`
	Tags         json.RawMessage            `json:"tags"`
	Hostname     string                     `json:"hostname"`
}

type PostgresConfig

type PostgresConfig struct {
	// contains filtered or unexported fields
}

func NewPostgresConfig

func NewPostgresConfig(user, password, host string, port int, dbname string) *PostgresConfig

func (*PostgresConfig) CheckHealth

func (pgconf *PostgresConfig) CheckHealth() error

func (*PostgresConfig) Insert

func (pgconf *PostgresConfig) Insert(event *EventStruct)

func (*PostgresConfig) SetPassword

func (c *PostgresConfig) SetPassword(password string)

Jump to

Keyboard shortcuts

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