client

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIHandlerFn

type CLIHandlerFn func(*codec.Codec) *cobra.Command

function to create the cli handler

type CLIRegistryHandlerFn added in v1.3.0

type CLIRegistryHandlerFn func(proxy *codec.CodecProxy, reg interfacetypes.InterfaceRegistry) *cobra.Command

type InterfaceRegistryProposalHandler added in v1.3.0

type InterfaceRegistryProposalHandler struct {
	CLIHandler  CLIRegistryHandlerFn
	RESTHandler RESTHandlerFn
}

func NewProposalRegistryHandler added in v1.3.0

func NewProposalRegistryHandler(cliHandler CLIRegistryHandlerFn, restHandler RESTHandlerFn) InterfaceRegistryProposalHandler

type ProposalHandler

type ProposalHandler struct {
	CLIHandler  CLIHandlerFn
	RESTHandler RESTHandlerFn
}

The combined type for a proposal handler for both cli and rest

func NewProposalHandler

func NewProposalHandler(cliHandler CLIHandlerFn, restHandler RESTHandlerFn) ProposalHandler

NewProposalHandler creates a new ProposalHandler object

type RESTHandlerFn

type RESTHandlerFn func(context.CLIContext) rest.ProposalRESTHandler

function to create the rest handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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