converter

package
v0.0.0-...-77c75b5 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConversion = errors.New("conversion failure")

Functions

This section is empty.

Types

type ConvertFunc

type ConvertFunc func(evt *pb.CloudEvent, v any) (err error)

type Service

type Service interface {
	Convert(src string, raw map[string]any) (evt *pb.CloudEvent, err error)
}

func NewLogging

func NewLogging(svc Service, log *slog.Logger) Service

func NewService

func NewService(et string) Service

Jump to

Keyboard shortcuts

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