Documentation ¶
Index ¶
- func ResponseConfigAt(m *discovery.Response, i int) (*discovery.ConfigResult, *discovery.Error)
- func ResponseEndorsersAt(m *discovery.Response, i int) (*discovery.ChaincodeQueryResult, *discovery.Error)
- func ResponseMembershipAt(m *discovery.Response, i int) (*discovery.PeerMembershipResult, *discovery.Error)
- func SignedRequestToRequest(sr *discovery.SignedRequest) (*discovery.Request, error)
- type QueryType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseConfigAt ¶
ResponseConfigAt returns the ConfigResult at a given index in the Response, or an Error if present.
func ResponseEndorsersAt ¶
func ResponseEndorsersAt(m *discovery.Response, i int) (*discovery.ChaincodeQueryResult, *discovery.Error)
ResponseEndorsersAt returns the PeerMembershipResult at a given index in the Response, or an Error if present.
func ResponseMembershipAt ¶
func ResponseMembershipAt(m *discovery.Response, i int) (*discovery.PeerMembershipResult, *discovery.Error)
ResponseMembershipAt returns the PeerMembershipResult at a given index in the Response, or an Error if present.
func SignedRequestToRequest ¶
func SignedRequestToRequest(sr *discovery.SignedRequest) (*discovery.Request, error)
SignedRequestToRequest deserializes this SignedRequest's payload and returns the serialized Request in its object form. Returns an error in case the operation fails.
Types ¶
type QueryType ¶
type QueryType uint8
QueryType defines the types of service discovery requests
func GetQueryType ¶
GetType returns the type of the request
Click to show internal directories.
Click to hide internal directories.