clinsq

package module
v0.0.0-...-f9ed5ae Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2017 License: Apache-2.0 Imports: 7 Imported by: 3

README

cli-nsq

GoDoc

NSQ flags helpers for gopkg.in/urfave/cli.v2 command line applications.

License

                             Apache License
                       Version 2.0, January 2004
                    http://www.apache.org/licenses/

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddrFlag = &cli.StringSliceFlag{
	Name:    "nsq-addr",
	EnvVars: []string{"NSQ_ADDR"},
	Usage:   "nsq address",
}

AddrFlag - NSQ address command line flag.

View Source
var ChannelFlag = &cli.StringFlag{
	Name:    "nsq-channel",
	EnvVars: []string{"NSQ_CHANNEL"},
	Usage:   "nsq channel",
	Value:   "consumer",
}

ChannelFlag - NSQ channel command line flag.

View Source
var LookupAddrFlag = &cli.StringSliceFlag{
	Name:    "nsqlookup-addr",
	EnvVars: []string{"NSQLOOKUP_ADDR"},
	Usage:   "nsqlookup address",
}

LookupAddrFlag - NSQ lookup address command line flag.

View Source
var TopicFlag = &cli.StringSliceFlag{
	Name:    "nsq-topic",
	EnvVars: []string{"NSQ_TOPIC"},
	Usage:   "nsq topic",
}

TopicFlag - NSQ topic command line flag.

Functions

func Connect

func Connect(c *cli.Context) (err error)

Connect - Connects to NSQ from nsq-addr and nsqlookup-addr flags.

func RequireAll

func RequireAll(c *cli.Context) error

RequireAll - Checks for all flags and reports errors if some are missing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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