cmd

package
v0.0.0-...-c93b885 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NatsFlags = []cli.Flag{
	&cli.StringFlag{
		Name:    "nats-url",
		Usage:   "the nats url to connect to",
		Value:   "tls://connect.ngs.global",
		EnvVars: []string{"NATS_URL"},
	},
	&cli.StringFlag{
		Name:    "nats-user-jwt",
		Usage:   "the nats user jwt",
		EnvVars: []string{"NATS_USER_JWT"},
	},
	&cli.StringFlag{
		Name:    "nats-user-seed",
		Usage:   "the nats user seed",
		EnvVars: []string{"NATS_USER_SEED"},
	},
	&cli.StringFlag{
		Name:    "nats-user-creds",
		Usage:   "the nats user creds file",
		EnvVars: []string{"NATS_USER_CREDS"},
	},
}

Functions

func ConnectNats

func ConnectNats(cCtx *cli.Context) (*nats.Conn, jetstream.JetStream, error)

func ParseNatsFlags

func ParseNatsFlags(cCtx *cli.Context) (string, []nats.Option, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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