api

package
v0.0.0-...-ac61c48 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TargetIndexName holds the name to which all events are currently written.
	// This is hardcoded for now.
	TargetIndexName = "eventingest"
)

Variables

This section is empty.

Functions

func Index

func Index(ctx context.Context, client *opensearch.Client, event *types.Event) error

Prepare should prepare the underlying storage system in order that this stream can be used.

Types

type APIError

type APIError struct {
	Message string
	// contains filtered or unexported fields
}

APIError ensures that the error message doesn't contain any sensitive inforation so that it can be safely displayed to a user.

func NewAPIError

func NewAPIError(err error, msg string, args ...interface{}) APIError

func (APIError) Error

func (a APIError) Error() string

func (APIError) Unwrap

func (a APIError) Unwrap() error

Jump to

Keyboard shortcuts

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