postgres

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	PgHost     string
	PgPort     string
	PgUser     string
	PgPassword string
	PgDatabase string
	Logger     []loggerT
	// contains filtered or unexported fields
}

The Postgres type encapsulates the Postgres Data Logging Integration

func (*Postgres) LoadConfig

func (p *Postgres) LoadConfig(confdir string) error

LoadConfig loads and stores the configuration for this Integration

func (*Postgres) Start

func (p *Postgres) Start(mq *mqtt.MQTT)

Start launches the Integration, LoadConfig() should have been called beforehand.

func (*Postgres) Stop

func (p *Postgres) Stop()

Stop terminates the Integration and all Goroutines it contains

Jump to

Keyboard shortcuts

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