cmd

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 43 Imported by: 0

Documentation

Overview

Package cmd provides the command-line interface for the RelayMiner.

- Contains subcommands for starting, testing, and operating a RelayMiner - Entry point for the relayminer CLI

Package cmd contains the relayminer CLI commands and utilities.

Package cmd holds CLI flag variables for the relayminer commands.

- Used by subcommands to configure runtime behavior - Values are set via CLI flags

Package cmd provides gRPC connection utilities for the relayminer CLI.

Package cmd provides keyring utilities for the relayminer CLI.

Index

Constants

View Source
const (
	FlagApp        = "app"
	FlagAppUsage   = "(Required) Staked application address"
	DefaultFlagApp = ""

	FlagPayload        = "payload"
	FlagPayloadUsage   = "(Required) JSON-RPC payload"
	DefaultFlagPayload = ""

	FlagSupplier        = "supplier"
	FlagSupplierUsage   = "(Optional) Staked Supplier address"
	DefaultFlagSupplier = ""

	FlagSupplierPublicEndpointOverride        = "supplier-public-endpoint-override"
	FlagSupplierPublicEndpointOverrideUsage   = "(Optional) Override the publicly exposed endpoint of the Supplier (useful for LocalNet testing)"
	DefaultFlagSupplierPublicEndpointOverride = ""

	FlagConfig        = "config"
	FlagConfigUsage   = "(Required) The path to the relayminer config file"
	DefaultFlagConfig = ""

	FlagCount        = "count"
	FlagCountUsage   = "(Optional) Number of requests to send (default: 1)"
	DefaultFlagCount = 1
)

Variables

This section is empty.

Functions

func RelayerCmd

func RelayerCmd() *cobra.Command

RelayerCmd returns the Cobra root command for the relayminer CLI.

- Root for all RelayMiner subcommands - Use 'relayminer --help' for more info

Types

type GRPCConfig added in v0.1.12

type GRPCConfig struct {
	HostPort string `yaml:"host_port"`
	Insecure bool   `yaml:"insecure"`
}

GRPCConfig holds configuration options for establishing a gRPC connection.

Fields: - HostPort: gRPC host:port string - Insecure: Use insecure credentials

Jump to

Keyboard shortcuts

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