Documentation
¶
Overview ¶
Code generated by gen-devrpc. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.