cmd

package
v0.0.0-...-2662d33 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConsumerCommand = &cli.Command{
	Name:   "consumer",
	Usage:  "run the consumer",
	Action: runConsumer,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "log-level",
			Usage:   "Log level",
			Aliases: []string{"l"},
			Value:   "info",
		},
		&cli.StringFlag{
			Name:    "nats-url",
			Usage:   "NATS server URL (needs JetStream)",
			Aliases: []string{"n"},
			Value:   "nats://localhost:4222",
		},
		&cli.StringFlag{
			Name:  "name",
			Usage: "Consumer name",
			Value: "consumer-" + uuid.New().String(),
		},
		&cli.StringFlag{
			Name:  "endpoint",
			Usage: "Clickhouse server endpoint",
			Value: "",
		},
		&cli.StringFlag{
			Name:  "db",
			Usage: "Clickhouse database name",
			Value: "default",
		},
		&cli.StringFlag{
			Name:  "username",
			Usage: "Clickhouse username",
			Value: "default",
		},
		&cli.StringFlag{
			Name:  "password",
			Usage: "Clickhouse password",
			Value: "",
		},
		&cli.StringFlag{
			Name:  "dune.namespace",
			Usage: "Dune namespace",
		},
		&cli.StringFlag{
			Name:  "dune.api-key",
			Usage: "Dune API key",
		},
		&cli.Uint64Flag{
			Name:  "batch-size",
			Usage: "Clickhouse max validator batch size",
			Value: 128,
		},
	},
}
View Source
var SentryCommand = &cli.Command{
	Name:   "sentry",
	Usage:  "run the sentry node",
	Action: runSentry,
	Flags: []cli.Flag{
		&cli.StringFlag{
			Name:    "log-level",
			Usage:   "log level",
			Aliases: []string{"l"},
			Value:   "info",
		},
		&cli.StringFlag{
			Name:    "nats-url",
			Usage:   "NATS server URL (needs JetStream)",
			Aliases: []string{"n"},
			Value:   "",
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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