commands

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(ctx context.Context) error

func Gateway

func Gateway(ctx context.Context, parser *flags.Parser) error

func Init

func Init(ctx context.Context, parser *flags.Parser) error

func LastBlock added in v0.59.0

func LastBlock(ctx context.Context, parser *flags.Parser) error

func Node

func Node(ctx context.Context, parser *flags.Parser) error

func Postgres

func Postgres(ctx context.Context, parser *flags.Parser) error

func Register

func Register(ctx context.Context, parser *flags.Parser, cmds ...Subcommand) error

Register registers one or more subcommands.

func Start

func Start(ctx context.Context, parser *flags.Parser) error

func Version

func Version(ctx context.Context, parser *flags.Parser) error

Types

type InitCmd

type InitCmd struct {
	config.VegaHomeFlag

	Force   bool `short:"f" long:"force" description:"Erase exiting vega configuration at the specified path"`
	Archive bool `short:"a" long:"archive" description:"Disable database retention policies. Keep data indefinitely"`
	Lite    bool `short:"l" long:"lite" description:"Set all database retention policies to one day only"`
}

func (*InitCmd) Execute

func (opts *InitCmd) Execute(args []string) error

type LastBlockCmd added in v0.59.0

type LastBlockCmd struct {
	config.VegaHomeFlag
	coreConfig.OutputFlag
	*config.Config

	Timeout time.Duration `long:"timeout" description:"Database connection timeout" default:"10s"`
}

func (*LastBlockCmd) Execute added in v0.59.0

func (cmd *LastBlockCmd) Execute(_ []string) error

type PostgresCmd

type PostgresCmd struct {
	Run PostgresRunCmd `command:"run"`
}

type PostgresRunCmd

type PostgresRunCmd struct {
	config.VegaHomeFlag
	config.Config
}

func (*PostgresRunCmd) Execute

func (cmd *PostgresRunCmd) Execute(_ []string) error

type StartCmd

type StartCmd struct {
	config.VegaHomeFlag

	config.Config
}

func (*StartCmd) Execute

func (cmd *StartCmd) Execute(args []string) error

type Subcommand

type Subcommand func(context.Context, *flags.Parser) error

Subcommand is the signature of a sub command that can be registered.

type VersionCmd

type VersionCmd struct {
	config.OutputFlag
	// contains filtered or unexported fields
}

func (*VersionCmd) Execute

func (cmd *VersionCmd) Execute(_ []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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