commands

package
v0.72.6 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 28 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(_ context.Context, parser *flags.Parser) error

func UnsafeResetAll added in v0.71.0

func UnsafeResetAll(_ 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 `description:"Erase exiting vega configuration at the specified path"                           long:"force"   short:"f"`
	Archive bool `description:"Disable database retention policies. Keeps data and network history indefinitely" long:"archive" short:"a"`
	Lite    bool `description:"Set all database retention policies to one day only"                              long:"lite"    short:"l"`
}

func (*InitCmd) Execute

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

func (*InitCmd) Usage added in v0.67.1

func (opts *InitCmd) Usage() string

type LastBlockCmd added in v0.59.0

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

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

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 UnsafeResetAllCmd added in v0.71.0

type UnsafeResetAllCmd struct {
	config.VegaHomeFlag
	*config.Config
}

func (*UnsafeResetAllCmd) Execute added in v0.71.0

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

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