cli

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Kafka options
	Kafka = iota
	KafkaBroker
	KafkaGroup
	KafkaVersion
	KafkaTopics

	// Postgres options
	Postgres
	PostgresHost
	PostgresPort
	PostgresUser
	PostgresDatabase
	PostgresPassword
	PostgresSSL

	// Mongodb options
	Mongo
	MongoHost
	MongoPort
	MongoDatabase
	MongoUser
	MongoPassword

	// Service options
	ServicePort
	ServiceLogLevel

	// Connection Tolerance
	ServiceConnectionTolerance
	ConnectionTimeoutSec
	MaxRetries
	RetryIntervalSec
)

Variables

This section is empty.

Functions

func CommonCliOptions

func CommonCliOptions(options ...int) []cli.Flag

Types

type ConnectionTolerance

type ConnectionTolerance struct {
	TimeoutSec       int
	MaxRetries       int
	RetryIntervalSec int
}

ConnectionTolerance ...

func (ConnectionTolerance) ParseCli

func (ct ConnectionTolerance) ParseCli(ctx *cli.Context) ConnectionTolerance

func (ConnectionTolerance) Timeout

func (ct ConnectionTolerance) Timeout() int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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