model

package
v0.0.0-...-71fdf4a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageWriter

type MessageWriter interface {
	io.Closer
	fmt.Stringer

	Write(ctx context.Context, msg *pb.CloudEvent) (err error)

	// WriteBatch writes the specified messages and returns the accepted count preserving the order.
	// Returns io.EOF if the destination file/connection/whatever is closed.
	WriteBatch(ctx context.Context, msgs []*pb.CloudEvent) (ackCount uint32, err error)
}

func NewMessagesWriterLoggingMiddleware

func NewMessagesWriterLoggingMiddleware(mw MessageWriter, log *slog.Logger) MessageWriter

Jump to

Keyboard shortcuts

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