io

package
v0.0.0-...-2aac5ee Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EgressIdentifier

type EgressIdentifier struct {
	EgressNamespace string
	EgressType      string
}

A reference to an egress, consisting of a namespace and a name.

func (*EgressIdentifier) String

func (egress *EgressIdentifier) String() string

type KafkaRecord

type KafkaRecord struct {
	// The topic to which the message
	// should be written.
	Topic string

	// An optional key to be written with
	// the message into the topic.
	Key string

	// The message to be written
	// to the topic.
	Value proto.Message
}

Egress message that will be written out to Apache Kafka.

func (*KafkaRecord) ToMessage

func (record *KafkaRecord) ToMessage() (proto.Message, error)

Transforms a KafkaRecord into a Message that can be sent to an egress.

type KinesisRecord

type KinesisRecord struct {
	// Target AWS Kinesis stream to write to.
	Stream string

	// Partition key to use when writing
	// the record to AWS Kinesis.
	PartitionKey string

	// Optional explicit hash key to use
	// when writing the record to
	// the stream.
	ExplicitHashKey string

	// The message to write out to
	// the target stream.
	Value proto.Message
}

Egress message that will be written out to AWS Kinesis

func (*KinesisRecord) ToMessage

func (record *KinesisRecord) ToMessage() (proto.Message, error)

Transforms a KinesisRecord into a Message that can be sent to an egress.

Jump to

Keyboard shortcuts

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