cloudevents

package
v0.0.0-...-a13986d Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCloudEventClientError = fmt.Errorf("could not create cloud event client")
View Source
var ErrConnRefused = fmt.Errorf("connection refused")
View Source
var ErrMessageBadFormat = fmt.Errorf("could not set data")

Functions

This section is empty.

Types

type CloudEventSenderFunc

type CloudEventSenderFunc = func(e eventInfo) error

type CloudEvents

type CloudEvents interface{}

func New

func New(config *Config, m mediator.Mediator, logger *slog.Logger) CloudEvents

type Config

type Config struct {
	Subscribers []Subscriber `yaml:"subscribers"`
}

func LoadConfiguration

func LoadConfiguration(data io.Reader) (*Config, error)

func LoadConfigurationFromFile

func LoadConfigurationFromFile(filepath string) *Config

type EntityInfo

type EntityInfo struct {
	IDPattern string `yaml:"idPattern"`
}

type Subscriber

type Subscriber struct {
	ID        string       `yaml:"id"`
	Name      string       `yaml:"name"`
	Type      string       `yaml:"type"`
	Endpoint  string       `yaml:"endpoint"`
	Tenants   []string     `yaml:"tenants"`
	Entities  []EntityInfo `yaml:"entities"`
	Source    string       `yaml:"source"`
	EventType string       `yaml:"eventType"`
}

Jump to

Keyboard shortcuts

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