Documentation ¶
Index ¶
- type Chaincode
- type Client
- type Payload
- type Response
- func BadRequest(msg string, args ...interface{}) *Response
- func BadRequestWithFault(fault interface{}) *Response
- func Direct(res peer.Response) *Response
- func Error(msg string, args ...interface{}) *Response
- func Forbidden(msg string, args ...interface{}) *Response
- func NotFound() *Response
- func NotFoundWithMessage(msg string, args ...interface{}) *Response
- func NotImplemented(function string) *Response
- func OK(result interface{}) *Response
- func Status(status int32) *Response
- func StatusWithFault(status int32, fault interface{}) *Response
- func StatusWithMessage(status int32, msg string, args ...interface{}) *Response
- func StatusWithResult(status int32, result interface{}) *Response
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Payload ¶
type Payload struct { Client *Client `json:"client,omitempty"` Chaincode *Chaincode `json:"chaincode,omitempty"` Transaction *Transaction `json:"transaction,omitempty"` Content interface{} `json:"content,omitempty"` ContentEncoding string `json:"content-encoding,omitempty"` Fault interface{} `json:"fault,omitempty"` }
type Response ¶
func BadRequest ¶
func BadRequestWithFault ¶
func BadRequestWithFault(fault interface{}) *Response
func NotFoundWithMessage ¶
func NotImplemented ¶
func StatusWithFault ¶
func StatusWithMessage ¶
func StatusWithResult ¶
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.