kpublisher

package
v0.0.0-...-f1e0df7 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

Publisher structure holding parsing things

func New

func New() (*Publisher, error)

New creates a Publisher

func (*Publisher) Handler

func (pb *Publisher) Handler(ctx context.Context, kinesisEvent events.KinesisEvent) (Response, error)

Handler takes a kinesis event and parses logs from it (sending them to honeycomb)

type Response

type Response struct {
	Ok      bool   `json:"ok"`
	Message string `json:"message"`
}

Response is a simple structured response

Jump to

Keyboard shortcuts

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