cloudevents

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 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 NewCloudEventSaver added in v0.1.15

func NewCloudEventSaver(postgresConfig natsservice.PostgresConfig) *CloudEventSaver

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 natsservice.PostgresConfig) error

Jump to

Keyboard shortcuts

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