Documentation ¶
Index ¶
- Constants
- func AddNewKeyRequestHandler(w http.ResponseWriter, r *http.Request)
- func BroadcastRest(cliCtx context.CLIContext, cdc *codec.Codec, stdTx auth.StdTx, mode string) ([]byte, cTypes.Error)
- func ForgotPasswordRequestHandler(cliCtx context.CLIContext) http.HandlerFunc
- func KafkaConsumerMsgs(cliCtx context.CLIContext, kafkaState kafka.KafkaState)
- func ParseFloat64OrReturnBadRequest(s string, defaultIfEmpty float64) (float64, int, error)
- func PostProcessResponse(cliCtx context.CLIContext, response interface{}) ([]byte, cTypes.Error)
- func QueryKeysRequestHandler(w http.ResponseWriter, r *http.Request)
- func QueryMnemonicRequestHandler(w http.ResponseWriter, r *http.Request)
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
- func SignAndBroadcast(br rest.BaseReq, cliCtx context.CLIContext, mode, password string, ...) ([]byte, cTypes.Error)
- func SignAndBroadcastMultiple(brs []rest.BaseReq, cliCtxs []context.CLIContext, mode []string, ...) ([]byte, error)
- func SignStdTxFromRest(txBldr auth.TxBuilder, cliCtx context.CLIContext, name string, ...) (auth.StdTx, error)
- func SimulationResponse(cdc *codec.Codec, gas uint64) ([]byte, cTypes.Error)
- func UpdateKeyRequestHandler(cliCtx context.CLIContext) http.HandlerFunc
- func WriteError(w http.ResponseWriter, err error)
- func WriteErrorResponse(w http.ResponseWriter, err cTypes.Error)
- type ErrorResponse
- type ForgotPasswordBody
- type Log
- type NewKeyBody
- type UpdateKeyBody
Constants ¶
View Source
const DefaultCodeSpace = "commit"
Variables ¶
This section is empty.
Functions ¶
func AddNewKeyRequestHandler ¶
func AddNewKeyRequestHandler(w http.ResponseWriter, r *http.Request)
func BroadcastRest ¶
func ForgotPasswordRequestHandler ¶
func ForgotPasswordRequestHandler(cliCtx context.CLIContext) http.HandlerFunc
func KafkaConsumerMsgs ¶
func KafkaConsumerMsgs(cliCtx context.CLIContext, kafkaState kafka.KafkaState)
KafkaConsumerMsgs : msgs to consume 5 second delay
func PostProcessResponse ¶
func PostProcessResponse(cliCtx context.CLIContext, response interface{}) ([]byte, cTypes.Error)
func QueryKeysRequestHandler ¶
func QueryKeysRequestHandler(w http.ResponseWriter, r *http.Request)
func QueryMnemonicRequestHandler ¶
func QueryMnemonicRequestHandler(w http.ResponseWriter, r *http.Request)
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)
RegisterRoutes : resgister REST routes
func SignAndBroadcast ¶
func SignStdTxFromRest ¶
func SimulationResponse ¶
func UpdateKeyRequestHandler ¶
func UpdateKeyRequestHandler(cliCtx context.CLIContext) http.HandlerFunc
func WriteError ¶
func WriteError(w http.ResponseWriter, err error)
func WriteErrorResponse ¶
func WriteErrorResponse(w http.ResponseWriter, err cTypes.Error)
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Success bool `json:"success"` Error interface{} `json:"error"` Code cTypes.CodeType `json:"code"` CodeSpace cTypes.CodespaceType `json:"codeSpace"` }
func NewErrorResponse ¶
func NewErrorResponse(success bool, err interface{}, code cTypes.CodeType, codeSpace cTypes.CodespaceType) ErrorResponse
type ForgotPasswordBody ¶
type Log ¶
type Log struct { CodeType cTypes.CodeType CodeSpace cTypes.CodespaceType Message string }
type NewKeyBody ¶
type UpdateKeyBody ¶
Click to show internal directories.
Click to hide internal directories.