Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OK constant - status code less than 400, endorser will endorse it. // OK means init or invoke successfully. OK = 200 // ERROR constant - default error value ERROR = 500 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Response ¶
type Response struct { // A status code that should follow the HTTP status codes. Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // A payload that can be used to include metadata with this response. Payload io.Reader `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` }
A response with a representation similar to an HTTP response that can be used within another message.
Click to show internal directories.
Click to hide internal directories.