lambda

package
v0.1.0-5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Action                      string        `json:"action"`
	NonTerminatingMatchingRules []interface{} `json:"nonTerminatingMatchingRules"`
}

type Event

type Event struct {
	Records []*Record `json:"records"`
}

type Firehose

type Firehose interface {
	PutRecordBatchWithContext(ctx aws.Context, input *firehose.PutRecordBatchInput, opts ...request.Option) (*firehose.PutRecordBatchOutput, error)
}

type Handler

type Handler struct {
	Firehose Firehose
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler() *Handler

func (*Handler) Do

func (handler *Handler) Do(ctx context.Context, ev *Event) (*Event, error)

type Record

type Record struct {
	RecordID    string `json:"recordId"`
	Result      string `json:"result"`
	Data        string `json:"data"`
	DecodedData Data   `json:"-"`
}

Jump to

Keyboard shortcuts

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