psql

package
v0.0.0-...-b1e6648 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnectionTimeout = 10 * time.Second
View Source
var SlowProducerTimeout time.Duration = 2 * time.Second

Functions

func ShortenId

func ShortenId(uuid string) (string, error)

Types

type Publisher

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

func New

func New(postgresHost string, postgresPort int, postgresUser string, postgresPw string, postgresDb string, debugLog bool, wg *sync.WaitGroup, basectx context.Context) (*Publisher, error)

func (*Publisher) Publish

func (publisher *Publisher) Publish(envelope model.Envelope, service model.Service) (err error, notifyUsers bool)

Jump to

Keyboard shortcuts

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