Back to godoc.org

Package protoext

v1.0.0-beta2.0...-bdbc9bd
Latest Go to latest

The latest major version is .

Published: Jul 30, 2020 | License: Apache-2.0 | Module: github.com/hyperledger/fabric-sdk-go

Index

func ResponseConfigAt

func ResponseConfigAt(m *discovery.Response, i int) (*discovery.ConfigResult, *discovery.Error)

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.

type QueryType

type QueryType uint8

QueryType defines the types of service discovery requests

const (
	InvalidQueryType QueryType = iota
	ConfigQueryType
	PeerMembershipQueryType
	ChaincodeQueryType
	LocalMembershipQueryType
)

func GetQueryType

func GetQueryType(q *discovery.Query) QueryType

GetType returns the type of the request

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier