fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/discovery/protoext Index | Files

package protoext

import "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/discovery/protoext"

Index

Package Files

querytype.go response.go

func ResponseConfigAt Uses

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 Uses

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 Uses

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 Uses

type QueryType uint8

QueryType defines the types of service discovery requests

const (
    InvalidQueryType QueryType = iota
    ConfigQueryType
    PeerMembershipQueryType
    ChaincodeQueryType
    LocalMembershipQueryType
)

func GetQueryType Uses

func GetQueryType(q *discovery.Query) QueryType

GetType returns the type of the request

Package protoext imports 1 packages (graph) and is imported by 1 packages. Updated 2019-08-31. Refresh now. Tools for package owners.