Help us shape the future of Go! Take the 2026 Go Developer Survey

get

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:     "get <event_name> <block_height_range_start> <optional:block_height_range_end|latest>",
	Short:   "Get events in a block range",
	Args:    cobra.RangeArgs(2, 3),
	Example: "flow events get A.1654653399040a61.FlowToken.TokensDeposited 11559500 11559600",
	Run: func(cmd *cobra.Command, args []string) {
		projectConf := new(cli.Config)
		if conf.Host == "" {
			projectConf = cli.LoadConfig()
		}
		host := projectConf.HostWithOverride(conf.Host)

		eventName, startHeight, endHeight := validateArguments(host, args)

		cli.GetBlockEvents(host, startHeight, endHeight, eventName, conf.Verbose)
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Host    string `flag:"host" info:"Flow Access API host address"`
	Verbose bool   `flag:"verbose" info:"Verbose output"`
}

Jump to

Keyboard shortcuts

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