Documentation ¶
Index ¶
- func PostProcessResponse(w http.ResponseWriter, cliCtx context.CLIContext, resp interface{})
- func PostProcessResponseBare(w http.ResponseWriter, cliCtx context.CLIContext, body interface{})
- func PrintOutput(ctx context.CLIContext, toPrint interface{}) error
- func ToPrintObj(ctx context.CLIContext, toPrint interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostProcessResponse ¶
func PostProcessResponse(w http.ResponseWriter, cliCtx context.CLIContext, resp interface{})
PostProcessResponse performs post processing for a REST response. The result returned to clients will contain two fields, the height at which the resource was queried at and the original result.
func PostProcessResponseBare ¶
func PostProcessResponseBare(w http.ResponseWriter, cliCtx context.CLIContext, body interface{})
PostProcessResponseBare post processes a body similar to PostProcessResponse except it does not wrap the body and inject the height.
func PrintOutput ¶
func PrintOutput(ctx context.CLIContext, toPrint interface{}) error
PrintOutput prints output while respecting output and indent flags
func ToPrintObj ¶
func ToPrintObj(ctx context.CLIContext, toPrint interface{}) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.