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

package greylist

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

Index

Package Files

greylist.go

type Filter Uses

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

Filter is a discovery filter that greylists certain peers that are known to be down for the configured amount of time

func New Uses

func New(expire time.Duration) *Filter

New creates a new greylist filter with the given expiry interval

func (*Filter) Accept Uses

func (b *Filter) Accept(peer fab.Peer) bool

Accept returns whether or not to Accept a peer as a canditate for endorsement

func (*Filter) Greylist Uses

func (b *Filter) Greylist(err error)

Greylist the given peer URL

Package greylist imports 6 packages (graph) and is imported by 1 packages. Updated 2018-05-11. Refresh now. Tools for package owners.