options

package
v1.0.0-alpha3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithPeerFilter

func WithPeerFilter(value PeerFilter) copts.Opt

WithPeerFilter sets a peer filter which provides per-request filtering of peers

Types

type Params

type Params struct {
	PeerFilter PeerFilter
}

Params defines the parameters of a selection service request

func NewParams

func NewParams(opts []copts.Opt) *Params

NewParams creates new parameters based on the provided options

func (*Params) SetPeerFilter

func (p *Params) SetPeerFilter(value PeerFilter)

SetPeerFilter sets the peer filter

type PeerFilter

type PeerFilter func(peer fab.Peer) bool

PeerFilter filters out unwanted peers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL