Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesFromString ¶
func BytesPacked ¶
Types ¶
type CreateProposalResult ¶
type CreateTokenResult ¶
type CreateTokenResult struct { CreateProposalResult Token string `json:"token"` }
type ProposalResponseResult ¶
type ProposalResponseResult struct { ProposalResponses []string `json:"proposal_responses"` // payload to be signed as signedTx Payload string `json:"payload"` }
func (*ProposalResponseResult) ParseOrPanic ¶
func (p *ProposalResponseResult) ParseOrPanic(jsonBytes []byte) ([]*peer.ProposalResponse, []byte)
type ProposalResult ¶
type ProposalResult struct { ProposalProto string `json:"proposal-proto"` Txid string `json:"txid"` }
func (ProposalResult) ParseOrPanic ¶
func (result ProposalResult) ParseOrPanic() *peer.Proposal
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 message associated with the response code. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // A payload specified by shim.Success() Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` }
func ShimResultFrom ¶
func ShimResultFrom(response *peer.ProposalResponse) Response
Click to show internal directories.
Click to hide internal directories.