rest

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountProposalsVoteHandlerFn

func GetAccountProposalsVoteHandlerFn(cdc *wire.Codec, kb keys.Keybase, ctx context.CoreContext) http.HandlerFunc

GetAccountProposalsVoteHandlerFn - http request handler to get an account vote on a proposal

func GetProposalHandlerFn

func GetProposalHandlerFn(cdc *wire.Codec, kb keys.Keybase, ctx context.CoreContext) http.HandlerFunc

GetProposalHandlerFn - http request handler to get a proposal

func GetProposalVotesHandlerFn

func GetProposalVotesHandlerFn(cdc *wire.Codec, kb keys.Keybase, ctx context.CoreContext) http.HandlerFunc

GetProposalVotesHandlerFn - http request handler to get all proposals from an account

func GetProposalsHandlerFn

func GetProposalsHandlerFn(cdc *wire.Codec, kb keys.Keybase, ctx context.CoreContext) http.HandlerFunc

GetProposalsHandlerFn - http request handler to get a proposal

func RegisterRoutes

func RegisterRoutes(ctx context.CoreContext, r *mux.Router, cdc *wire.Codec, kb keys.Keybase)

RegisterRoutes - Central function to define routes that get registered by the main application

func SubmitProposalHandlerFn

func SubmitProposalHandlerFn(cdc *wire.Codec, kb keys.Keybase, ctx context.CoreContext) http.HandlerFunc

SubmitProposalHandlerFn - http request handler to create a proposal

func SubmitVoteHandlerFn

func SubmitVoteHandlerFn(cdc *wire.Codec, kb keys.Keybase, ctx context.CoreContext) http.HandlerFunc

SubmitVoteHandlerFn - http request handler to vote on a proposal

Types

This section is empty.

Jump to

Keyboard shortcuts

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