management

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManagement

func NewManagement(parentCtx context.Context, config Config, provider Provider, topologyConsumer TopologyConsumer, parentLogger log.Logger, metricFactory metric.Factory) *service

Types

type CommitteeTerm

type CommitteeTerm struct {
	AsOfReference primitives.TimestampSeconds
	Members       []primitives.NodeAddress
	Weights       []primitives.Weight
}

type Config

type Config interface {
	ManagementPollingInterval() time.Duration
}

type ProtocolVersionTerm added in v1.3.12

type ProtocolVersionTerm struct {
	AsOfReference primitives.TimestampSeconds
	Version       primitives.ProtocolVersion
}

type Provider

type Provider interface {
	Get(ctx context.Context, referenceTime primitives.TimestampSeconds) (*VirtualChainManagementData, error)
}

type SubscriptionTerm added in v1.3.12

type SubscriptionTerm struct {
	AsOfReference primitives.TimestampSeconds
	IsActive      bool
}

type TopologyConsumer

type TopologyConsumer interface {
	UpdateTopology(ctx context.Context, input *services.UpdateTopologyInput) (*services.UpdateTopologyOutput, error)
}

type VirtualChainManagementData added in v1.3.12

type VirtualChainManagementData struct {
	CurrentReference   primitives.TimestampSeconds
	GenesisReference   primitives.TimestampSeconds
	StartPageReference primitives.TimestampSeconds
	EndPageReference   primitives.TimestampSeconds
	CurrentTopology    []*services.GossipPeer
	Committees         []CommitteeTerm
	Subscriptions      []SubscriptionTerm
	ProtocolVersions   []ProtocolVersionTerm
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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