Documentation ¶
Index ¶
- Variables
- type ChannelResponse
- type Client
- type Dialer
- type Endorsers
- type ExclusionFilter
- type Filter
- type InvocationChain
- type LocalResponse
- type MemoizeSigner
- type Peer
- type Priority
- type PrioritySelector
- type Request
- func (req *Request) AddConfigQuery() *Request
- func (req *Request) AddEndorsersQuery(interests ...*discovery.ChaincodeInterest) (*Request, error)
- func (req *Request) AddLocalPeersQuery() *Request
- func (req *Request) AddPeersQuery(invocationChain ...*discovery.ChaincodeCall) *Request
- func (req *Request) OfChannel(ch string) *Request
- type Response
- type Signer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PrioritiesByHeight = &byHeight{} NoExclusion = selectionFunc(noExclusion) NoPriorities = &noPriorities{} )
View Source
var (
ErrNotFound = errors.New("not found")
)
View Source
var NoFilter = NewFilter(NoPriorities, NoExclusion)
Functions ¶
This section is empty.
Types ¶
type ChannelResponse ¶
type ChannelResponse interface { Config() (*discovery.ConfigResult, error) Peers(invocationChain ...*discovery.ChaincodeCall) ([]*Peer, error) Endorsers(invocationChain InvocationChain, f Filter) (Endorsers, error) }
type Dialer ¶
type Dialer func() (*grpc.ClientConn, error)
type Endorsers ¶
type Endorsers []*Peer
func (Endorsers) Filter ¶
func (endorsers Endorsers) Filter(f ExclusionFilter) Endorsers
func (Endorsers) Sort ¶
func (endorsers Endorsers) Sort(ps PrioritySelector) Endorsers
type ExclusionFilter ¶
func ExcludeByHost ¶
func ExcludeByHost(reject func(host string) bool) ExclusionFilter
func ExcludeHosts ¶
func ExcludeHosts(endpoints ...string) ExclusionFilter
type Filter ¶
func NewFilter ¶
func NewFilter(ps PrioritySelector, ef ExclusionFilter) Filter
type InvocationChain ¶
type InvocationChain []*discovery.ChaincodeCall
func (InvocationChain) String ¶
func (ic InvocationChain) String() string
func (InvocationChain) ValidateInvocationChain ¶
func (ic InvocationChain) ValidateInvocationChain() error
type LocalResponse ¶
type MemoizeSigner ¶
func NewMemoizeSigner ¶
func NewMemoizeSigner(signFunc Signer, maxEntries uint) *MemoizeSigner
type Peer ¶
type Peer struct { MSPID string AliveMessage *protoext.SignedGossipMessage StateInfoMessage *protoext.SignedGossipMessage Identity []byte }
type PrioritySelector ¶
type Request ¶
func NewRequest ¶
func NewRequest() *Request
func (*Request) AddConfigQuery ¶
func (*Request) AddEndorsersQuery ¶
func (req *Request) AddEndorsersQuery(interests ...*discovery.ChaincodeInterest) (*Request, error)
func (*Request) AddLocalPeersQuery ¶
func (*Request) AddPeersQuery ¶
func (req *Request) AddPeersQuery(invocationChain ...*discovery.ChaincodeCall) *Request
type Response ¶
type Response interface { ForChannel(string) ChannelResponse ForLocal() LocalResponse }
Click to show internal directories.
Click to hide internal directories.