cosmos-sdk: github.com/cosmos/cosmos-sdk/x/gov/client Index | Files | Directories

package client

import "github.com/cosmos/cosmos-sdk/x/gov/client"

Index

Package Files

proposal_handler.go

type CLIHandlerFn Uses

type CLIHandlerFn func() *cobra.Command

function to create the cli handler

type ProposalHandler Uses

type ProposalHandler struct {
    CLIHandler  CLIHandlerFn
    RESTHandler RESTHandlerFn
}

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

func NewProposalHandler Uses

func NewProposalHandler(cliHandler CLIHandlerFn, restHandler RESTHandlerFn) ProposalHandler

NewProposalHandler creates a new ProposalHandler object

type RESTHandlerFn Uses

type RESTHandlerFn func(client.Context) rest.ProposalRESTHandler

function to create the rest handler

Directories

PathSynopsis
cli
rest
utils

Package client imports 3 packages (graph) and is imported by 7 packages. Updated 2020-08-13. Refresh now. Tools for package owners.