Documentation ¶
Index ¶
- Constants
- func HandleAWSSQSFlags(readCmd, writeCmd, relayCmd *kingpin.CmdClause, opts *Options)
- func HandleActiveMqFlags(readCmd, writeCmd *kingpin.CmdClause, opts *Options)
- func HandleGCPPubSubFlags(readCmd, writeCmd *kingpin.CmdClause, opts *Options)
- func HandleGlobalFlags(cmd *kingpin.CmdClause, opts *Options)
- func HandleGlobalReadFlags(cmd *kingpin.CmdClause, opts *Options)
- func HandleGlobalWriteFlags(cmd *kingpin.CmdClause, opts *Options)
- func HandleKafkaFlags(readCmd, writeCmd *kingpin.CmdClause, opts *Options)
- func HandleMQTTFlags(readCmd, writeCmd *kingpin.CmdClause, opts *Options)
- func HandleRabbitFlags(readCmd, writeCmd, relayCmd *kingpin.CmdClause, opts *Options)
- func HandleRelayFlags(relayCmd *kingpin.CmdClause, opts *Options)
- func ValidateProtobufOptions(dirs []string, rootMessage string) error
- type AWSSQSOptions
- type ActiveMqOptions
- type GCPPubSubOptions
- type KafkaOptions
- type MQTTOptions
- type Options
- type RabbitOptions
Constants ¶
View Source
const ( DefaultGRPCAddress = "grpc-collector.batch.sh:9000" DefaultHTTPListenAddress = ":8080" DefaultGRPCTimeout = "10s" DefaultNumWorkers = "10" )
View Source
const ( KafkaDefaultConnectTimeout = "10s" KafkaDefaultGroupId = "plumber" )
View Source
const ( MQTTDefaultConnectTimeout = "5s" MQTTDefaultClientId = "plumber" )
Variables ¶
This section is empty.
Functions ¶
func HandleAWSSQSFlags ¶ added in v0.3.0
func HandleAWSSQSFlags(readCmd, writeCmd, relayCmd *kingpin.CmdClause, opts *Options)
func HandleActiveMqFlags ¶ added in v0.8.0
func HandleActiveMqFlags(readCmd, writeCmd *kingpin.CmdClause, opts *Options)
func HandleGCPPubSubFlags ¶
func HandleGCPPubSubFlags(readCmd, writeCmd *kingpin.CmdClause, opts *Options)
func HandleGlobalFlags ¶ added in v0.6.0
func HandleGlobalFlags(cmd *kingpin.CmdClause, opts *Options)
func HandleGlobalReadFlags ¶ added in v0.7.0
func HandleGlobalReadFlags(cmd *kingpin.CmdClause, opts *Options)
func HandleGlobalWriteFlags ¶ added in v0.7.0
func HandleGlobalWriteFlags(cmd *kingpin.CmdClause, opts *Options)
func HandleKafkaFlags ¶
func HandleKafkaFlags(readCmd, writeCmd *kingpin.CmdClause, opts *Options)
func HandleMQTTFlags ¶ added in v0.2.0
func HandleMQTTFlags(readCmd, writeCmd *kingpin.CmdClause, opts *Options)
func HandleRabbitFlags ¶
func HandleRabbitFlags(readCmd, writeCmd, relayCmd *kingpin.CmdClause, opts *Options)
func HandleRelayFlags ¶ added in v0.4.0
func HandleRelayFlags(relayCmd *kingpin.CmdClause, opts *Options)
func ValidateProtobufOptions ¶ added in v0.5.0
Types ¶
type AWSSQSOptions ¶ added in v0.3.0
type AWSSQSOptions struct { // Shared QueueName string RemoteAccountID string // Read ReadMaxNumMessages int64 ReadAutoDelete bool ReadReceiveRequestAttemptId string ReadWaitTimeSeconds int64 // Write WriteDelaySeconds int64 WriteAttributes map[string]string // Relay RelayMaxNumMessages int64 RelayReceiveRequestAttemptId string RelayAutoDelete bool RelayWaitTimeSeconds int64 }
type ActiveMqOptions ¶ added in v0.8.0
type GCPPubSubOptions ¶
type KafkaOptions ¶
type MQTTOptions ¶ added in v0.2.0
type Options ¶
type Options struct { // Global Debug bool Quiet bool Action string Version string Backend string // Serializers AvroSchemaFile string // Relay RelayToken string RelayGRPCAddress string RelayType string RelayHTTPListenAddress string RelayNumWorkers int RelayGRPCTimeout time.Duration RelayGRPCDisableTLS bool // Shared read flags ReadProtobufRootMessage string ReadProtobufDirs []string ReadOutputType string ReadFollow bool ReadLineNumbers bool ReadConvert string // Shared write flags WriteInputData string WriteInputFile string WriteInputType string WriteOutputType string WriteProtobufDirs []string WriteProtobufRootMessage string Kafka *KafkaOptions Rabbit *RabbitOptions GCPPubSub *GCPPubSubOptions MQTT *MQTTOptions AWSSQS *AWSSQSOptions ActiveMq *ActiveMqOptions }
Click to show internal directories.
Click to hide internal directories.