fabric-sdk-go: github.com/hyperledger/fabric-sdk-go/pkg/client/common/filter Index | Files

package filter

import "github.com/hyperledger/fabric-sdk-go/pkg/client/common/filter"

Package filter provides common filters (e.g. Endpoint)

Index

Package Files

endpoint.go

type EndpointFilter Uses

type EndpointFilter struct {
    // contains filtered or unexported fields
}

EndpointFilter filters based on endpoint config options

func NewEndpointFilter Uses

func NewEndpointFilter(ctx context.Channel, et EndpointType) *EndpointFilter

NewEndpointFilter creates a new endpoint filter that is based on configuration. If channel peer is not configured it will be selected by default.

func (*EndpointFilter) Accept Uses

func (f *EndpointFilter) Accept(peer fab.Peer) bool

Accept returns false if this peer is to be excluded from the target list

type EndpointType Uses

type EndpointType int32

EndpointType represents endpoint type

const (
    ChaincodeQuery EndpointType = iota
    EndorsingPeer
    LedgerQuery
    EventSource
)

Endpoint types

Package filter imports 3 packages (graph) and is imported by 2 packages. Updated 2019-04-29. Refresh now. Tools for package owners.