Documentation ¶
Index ¶
- func FormatKV(in []string) string
- func FormatList(in []string) string
- func GetGRPCAddress(cmd *cobra.Command) string
- func GetGRPCConnection(ctx context.Context, address string) (*grpc.ClientConn, error)
- func GetGraphQLAddress(cmd *cobra.Command) string
- func GetIBFTOperatorClientConnection(ctx context.Context, address string) (ibftOp.IbftOperatorClient, error)
- func GetJSONRPCAddress(cmd *cobra.Command) string
- func GetJaegerFlag(cmd *cobra.Command) (bool, string)
- func GetPprofFlag(cmd *cobra.Command) bool
- func GetSystemClientConnection(ctx context.Context, address string) (proto.SystemClient, error)
- func GetTxPoolClientConnection(ctx context.Context, address string) (txpoolOp.TxnPoolOperatorClient, error)
- func HandleSignals(closeFn func(), outputter command.OutputFormatter) error
- func ParseGRPCAddress(grpcAddress string) (*net.TCPAddr, error)
- func ParseGraphQLAddress(graphqlAddress string) (*url.URL, error)
- func ParseJSONRPCAddress(jsonrpcAddress string) (*url.URL, error)
- func RegisterGRPCAddressFlag(cmd *cobra.Command)
- func RegisterGraphQLFlag(cmd *cobra.Command)
- func RegisterJSONOutputFlag(cmd *cobra.Command)
- func RegisterJSONRPCFlag(cmd *cobra.Command)
- func RegisterJaegerFlag(cmd *cobra.Command)
- func RegisterLegacyGRPCAddressFlag(cmd *cobra.Command)
- func RegisterPprofFlag(cmd *cobra.Command)
- func ResolveAddr(address string, defaultIP IPBinding) (*net.TCPAddr, error)
- func SetRequiredFlags(cmd *cobra.Command, requiredFlags []string)
- func WriteGenesisConfigToDisk(genesisConfig *chain.Chain, genesisPath string) error
- type ClientCloseResult
- type IPBinding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatList ¶
FormatList formats a list, using a specific blank value replacement
func GetGRPCAddress ¶
GetGRPCAddress extracts the set GRPC address
func GetGRPCConnection ¶
GetGRPCConnection returns a grpc client connection
func GetGraphQLAddress ¶ added in v0.5.3
GetGraphQLAddress extracts the set GraphQL address
func GetIBFTOperatorClientConnection ¶
func GetIBFTOperatorClientConnection(ctx context.Context, address string) ( ibftOp.IbftOperatorClient, error, )
GetIBFTOperatorClientConnection returns the IBFT operator client connection
func GetJSONRPCAddress ¶
GetJSONRPCAddress extracts the set JSON-RPC address
func GetJaegerFlag ¶ added in v1.2.4
GetJaegerFlag extracts the telemetry flag
func GetPprofFlag ¶ added in v1.2.0
GetPprofFlag extracts the
func GetSystemClientConnection ¶
GetSystemClientConnection returns the System operator client connection
func GetTxPoolClientConnection ¶
func GetTxPoolClientConnection(ctx context.Context, address string) ( txpoolOp.TxnPoolOperatorClient, error, )
GetTxPoolClientConnection returns the TxPool operator client connection
func HandleSignals ¶
func HandleSignals( closeFn func(), outputter command.OutputFormatter, ) error
HandleSignals is a helper method for handling signals sent to the console Like stop, error, etc.
func ParseGRPCAddress ¶
ParseGRPCAddress parses the passed in GRPC address
func ParseGraphQLAddress ¶ added in v0.5.3
ParseGraphQLAddress parses the passed in GraphQL address
func ParseJSONRPCAddress ¶
ParseJSONRPCAddress parses the passed in JSONRPC address
func RegisterGRPCAddressFlag ¶
RegisterGRPCAddressFlag registers the base GRPC address flag for all child commands
func RegisterGraphQLFlag ¶ added in v0.5.3
RegisterGraphQLFlag registers the base GraphQL address flag for all child commands
func RegisterJSONOutputFlag ¶
RegisterJSONOutputFlag registers the --json output setting for all child commands
func RegisterJSONRPCFlag ¶
RegisterJSONRPCFlag registers the base JSON-RPC address flag for all child commands
func RegisterJaegerFlag ¶ added in v1.2.4
RegustreTelemetryFlag registers the telemetry flags
func RegisterLegacyGRPCAddressFlag ¶
RegisterLegacyGRPCAddressFlag registers the legacy GRPC address flag for all child commands
func RegisterPprofFlag ¶ added in v1.1.3
RegisterPprofFlag registers the pprof flags
func ResolveAddr ¶
ResolveAddr resolves the passed in TCP address The second param is the default ip to bind to, if no ip address is specified
func SetRequiredFlags ¶ added in v0.5.5
Types ¶
type ClientCloseResult ¶
type ClientCloseResult struct {
Message string `json:"message"`
}
func (*ClientCloseResult) GetOutput ¶
func (r *ClientCloseResult) GetOutput() string