startup_events

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventOptions

type EventOptions struct {
	Sender string `long:"event-sender" default:"none" description:"Event sender to use. Can be 'none', 'stdout', 'file:name.gz' or 'kafka'."`

	KafkaEncoder           string `long:"event-kafka-encoder" default:"avro" description:"Event encoder to use with kafka. Valid options are 'json' and 'avro'."`
	KafkaReplicationFactor int16  `long:"event-kafka-replication-factor" validate:"min=1" default:"1" description:"Replication factor for kafka topics."`

	Inputs struct {
		// Enable blocking. This should normally not be used for production and only
		// be used in batch cli tools
		KafkaBlocking bool

		// A function to create the event topics. This option must be specified.
		Topics events.TopicsFunc `validate:"required"`
	}
	// contains filtered or unexported fields
}

func (*EventOptions) EventSender

func (opts *EventOptions) EventSender(kafkaClient KafkaClientProvider, registry SchemaRegistryProvider) events.EventSender

type KafkaClientProvider

type KafkaClientProvider interface {
	KafkaClient() sarama.Client
}

type SchemaRegistryProvider

type SchemaRegistryProvider interface {
	SchemaRegistry() schema.Registry
}

Jump to

Keyboard shortcuts

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