opts

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = Options{
	ClientID:               defaultClientID,
	NatsURL:                defaultNatsURL,
	NatsStreamingClusterID: defaultNatsStreamingClusterID,
	ConnectWait:            defaultConnectWait,
	AckWait:                defaultAckWait,
	MaxIdleConns:           defaultMaxIdleConns,
	IdleConnTimeout:        defaultIdleConnTimeout,
	TLSSkipVerify:          false,
	QueueGroup:             defaultQueueGroup,
	CheckEventsActivation:  false,
}

Functions

This section is empty.

Types

type Options

type Options struct {
	Port                   int
	ClientID               string
	NatsURL                string
	NatsStreamingClusterID string
	ConnectWait            time.Duration
	QueueGroup             string
	SubscriptionNameHeader string
	TopicHeader            string
	AckWait                time.Duration
	MaxIdleConns           int
	IdleConnTimeout        time.Duration
	TLSSkipVerify          bool
	trace.Options
	CheckEventsActivation bool
}

Options represents command line

func ParseFlags

func ParseFlags() *Options

ParseFlags parses command line flags

Jump to

Keyboard shortcuts

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