Documentation ¶
Index ¶
- func AuthClientFlags() []cli.Flag
- func ConcatFlags(flags ...[]cli.Flag) []cli.Flag
- func KeenFlags() []cli.Flag
- func MongoFlags(defaultDatabase string) []cli.Flag
- func SESFlags() []cli.Flag
- func TraceFlags() []cli.Flag
- type AuthClientOptions
- type KeenOptions
- type MongoOptions
- type SESOptions
- type TraceOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthClientFlags ¶
AuthClientFlags returns the flags that will be used by ParseAuthClientOptions.
func ConcatFlags ¶
func ConcatFlags(flags ...[]cli.Flag) []cli.Flag
ConcatFlags concatenates all flags provided to a single array. Currently it does not inspect if an flag already exists, or sort by name etc.
func MongoFlags ¶
MongoFlags returns the flags that will be used by ParseMongoOptions. defaultDatabase will be used for the --mongo-database flag.
func TraceFlags ¶
TraceFlags returns the flags that will be used by ParseTraceOptions.
Types ¶
type AuthClientOptions ¶
AuthClientOptions are the commonly used options when using a AuthClient.
func ParseAuthClientOptions ¶
func ParseAuthClientOptions(c *cli.Context) *AuthClientOptions
ParseAuthClientOptions fetches the values from urfave/cli Context and returns them as a AuthClientOptions. Uses the names as specified in AuthClientFlags.
type KeenOptions ¶
KeenOptions are the commonly used options when sending metrics to Keen.
func ParseKeenOptions ¶
func ParseKeenOptions(c *cli.Context) *KeenOptions
ParseKeenOptions fetches the values from urfave/cli Context and returns them as a KeenOptions. Uses the names as specified in KeenFlags.
type MongoOptions ¶
MongoOptions are the commonly used options when connecting to a MongoDB server.
func ParseMongoOptions ¶
func ParseMongoOptions(c *cli.Context) *MongoOptions
ParseMongoOptions fetches the values from urfave/cli Context and returns them as a MongoOptions. Uses the names as specified in MongoFlags.
type SESOptions ¶
type SESOptions struct {
SESRegion string
}
SESOptions are the commonly used options when using the AWS SES service.
func ParseSESOptions ¶
func ParseSESOptions(c *cli.Context) *SESOptions
ParseSESOptions fetches the values from urfave/cli Context and returns them as a SESOptions. Uses the names as specified in SESFlags.
type TraceOptions ¶
TraceOptions are the commonly used options when using a Trace service.
func ParseTraceOptions ¶
func ParseTraceOptions(c *cli.Context) *TraceOptions
ParseTraceOptions fetches the values from urfave/cli Context and returns them as a TraceOptions. Uses the names as specified in TraceFlags.