firehose

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProducer

func NewProducer(destinationConfig interface{}, o Opts) (firehose.Firehose, error)

NewProducer creates a producer based on destination config

func Produce

func Produce(jsonData json.RawMessage, producer interface{}, destConfig interface{}) (statusCode int, respStatus string, responseMessage string)

Produce creates a producer and send data to Firehose.

Types

type Config

type Config struct {
	Region      string
	AccessKeyID string
	AccessKey   string
}

Config is the config that is required to send data to Firehose

type Opts

type Opts struct {
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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