cloudevents

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudEventSaver

type CloudEventSaver struct {
	natsservice.NatsService
	// contains filtered or unexported fields
}

CloudEventSaver listens to all cloud events and saves them in a postgresql database

func (*CloudEventSaver) Logger

func (svc *CloudEventSaver) Logger() *logrus.Entry

func (*CloudEventSaver) Run

func (svc *CloudEventSaver) Run(ctx context.Context, params ...interface{}) error

type Database

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

func (*Database) InsertEvent

func (d *Database) InsertEvent(topic string, e *event.Event, payload []byte, err error) error

func (*Database) Open

func (d *Database) Open(dbConfig DatabaseConfig) error

type DatabaseConfig

type DatabaseConfig struct {
	DBHost string `ini:"dbhost,omitempty"`
	DBname string `ini:"dbname,omitempty"`
	DBuser string `ini:"dbuser,omitempty"`
	DBpass string `ini:"dbpass,omitempty"`
	DBPort int    `ini:"dbport,omitempty"`
}

Jump to

Keyboard shortcuts

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