Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilteredIdentifierProvider ¶
type FilteredIdentifierProvider struct {
// contains filtered or unexported fields
}
FilteredIdentifierProvider implements an IdentifierProvider which provides the identifiers resulting from applying a filter to an IdentityProvider.
func NewFilteredIdentifierProvider ¶
func NewFilteredIdentifierProvider(filter flow.IdentityFilter, identityProvider IdentityProvider) *FilteredIdentifierProvider
func (*FilteredIdentifierProvider) Identifiers ¶
func (p *FilteredIdentifierProvider) Identifiers() flow.IdentifierList
type FixedIdentifierProvider ¶
type FixedIdentifierProvider struct {
// contains filtered or unexported fields
}
FixedIdentifierProvider implements an IdentifierProvider which provides a fixed list of identifiers.
func NewFixedIdentifierProvider ¶
func NewFixedIdentifierProvider(identifiers flow.IdentifierList) *FixedIdentifierProvider
func (*FixedIdentifierProvider) Identifiers ¶
func (p *FixedIdentifierProvider) Identifiers() flow.IdentifierList
type FixedIdentityProvider ¶
type FixedIdentityProvider struct {
// contains filtered or unexported fields
}
FixedIdentityProvider implements an IdentityProvider which provides a fixed list of identities.
func NewFixedIdentityProvider ¶
func NewFixedIdentityProvider(identities flow.IdentityList) *FixedIdentityProvider
func (*FixedIdentityProvider) ByNodeID ¶
func (p *FixedIdentityProvider) ByNodeID(flowID flow.Identifier) (*flow.Identity, bool)
func (*FixedIdentityProvider) Identities ¶
func (p *FixedIdentityProvider) Identities(filter flow.IdentityFilter) flow.IdentityList
type IdentifierProvider ¶
type IdentifierProvider interface {
Identifiers() flow.IdentifierList
}
IdentifierProvider provides an interface to get a list of Identifiers representing a specific set of nodes in the network.
type IdentityProvider ¶
type IdentityProvider interface { Identities(flow.IdentityFilter) flow.IdentityList ByNodeID(flow.Identifier) (*flow.Identity, bool) ByPeerID(peer.ID) (*flow.Identity, bool) }
IdentifierProvider provides an interface to get a list of Identities representing the set of staked participants in the Flow protocol.
Click to show internal directories.
Click to hide internal directories.