commands

package
v0.0.0-...-589da53 Latest Latest
Warning

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

Go to latest
Published: May 30, 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

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

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.FuryHomeFlag

	Force   bool `short:"f" long:"force" description:"Erase exiting fury configuration at the specified path"`
	Archive bool `short:"a" long:"archive" description:"Disable database retention policies. Keeps data and network history 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

func (*InitCmd) Usage

func (opts *InitCmd) Usage() string

type LastBlockCmd

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

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

func (*LastBlockCmd) Execute

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

type PostgresCmd

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

type PostgresRunCmd

type PostgresRunCmd struct {
	config.FuryHomeFlag
	config.Config
}

func (*PostgresRunCmd) Execute

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

type StartCmd

type StartCmd struct {
	config.FuryHomeFlag

	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

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

func (*UnsafeResetAllCmd) Execute

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