devrpc

package
v0.1.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Code generated by gen-devrpc. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDevCmd

func NewDevCmd(cfg Config) *cobra.Command

NewDevCmd creates the generated low-level RPC command tree.

Types

type Config

type Config struct {
	// GetConn returns a daemon gRPC connection using the parent command's
	// persistent connection flags.
	GetConn func(*cobra.Command) (*grpc.ClientConn, error)

	// PrintJSON renders a proto response using the parent CLI's JSON output
	// policy.
	PrintJSON func(proto.Message) error

	// MapRPCError maps low-level gRPC errors into user-facing CLI errors.
	MapRPCError func(error) error

	// RPCContext derives the bounded context for one daemon RPC.
	RPCContext func(*cobra.Command) (context.Context, context.CancelFunc)
}

Config contains the parent CLI integrations needed by the generated dev RPC command tree.

Jump to

Keyboard shortcuts

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