ingestdriver

package
v1.0.0-beta.69 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIngestEventsHandler

func NewIngestEventsHandler(
	op operation.Operation[ingest.IngestEventsRequest, bool],
	namespaceDecoder NamespaceDecoder,
	commonErrorEncoder httptransport.ErrorEncoder,
	errorHandler httptransport.ErrorHandler,
) http.Handler

NewIngestEventsHandler returns a new HTTP handler that wraps the given operation.Operation.

Types

type ErrorInvalidContentType

type ErrorInvalidContentType struct {
	ContentType string
}

func (ErrorInvalidContentType) Details

func (e ErrorInvalidContentType) Details() map[string]any

func (ErrorInvalidContentType) Error

func (e ErrorInvalidContentType) Error() string

func (ErrorInvalidContentType) Message

func (e ErrorInvalidContentType) Message() string

type ErrorInvalidEvent

type ErrorInvalidEvent struct {
	Err error
}

func (ErrorInvalidEvent) Error

func (e ErrorInvalidEvent) Error() string

func (ErrorInvalidEvent) Message

func (e ErrorInvalidEvent) Message() string

type NamespaceDecoder

type NamespaceDecoder interface {
	GetNamespace(ctx context.Context) (string, bool)
}

NamespaceDecoder gets the namespace from the request.

type StaticNamespaceDecoder

type StaticNamespaceDecoder string

func (StaticNamespaceDecoder) GetNamespace

func (d StaticNamespaceDecoder) GetNamespace(ctx context.Context) (string, bool)

Jump to

Keyboard shortcuts

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