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)
Click to show internal directories.
Click to hide internal directories.