Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type GossipAdapter ¶
type GossipAdapter interface { Send(msg *proto.GossipMessage, peers ...*comm.RemotePeer) Accept(acceptor common2.MessageAcceptor, passThrough bool) (<-chan *proto.GossipMessage, <-chan protoext.ReceivedMessage) UpdateLedgerHeight(height uint64, channelID common2.ChannelID) PeersOfChannel(common2.ChannelID) []discovery.NetworkMember }
type GossipStateProvider ¶
func NewGossipStateProvider ¶
func NewGossipStateProvider( chainID string, services *ServicesMediator, ledger ledgerResources, stateMetrics *metrics.StateMetrics, blockingMode bool, config *StateConfig, ) GossipStateProvider
type GossipStateProviderImpl ¶
type GossipStateProviderImpl struct {
// contains filtered or unexported fields
}
func (*GossipStateProviderImpl) AddPayload ¶
func (s *GossipStateProviderImpl) AddPayload(payload *proto.Payload) error
func (*GossipStateProviderImpl) Stop ¶
func (s *GossipStateProviderImpl) Stop()
type MCSAdapter ¶
type PayloadsBuffer ¶
type PayloadsBuffer interface { Push(payload *proto.Payload) Next() uint64 Pop() *proto.Payload Size() int Ready() chan struct{} Close() }
func NewPayloadsBuffer ¶
func NewPayloadsBuffer(next uint64) PayloadsBuffer
type PayloadsBufferImpl ¶
type PayloadsBufferImpl struct {
// contains filtered or unexported fields
}
func (*PayloadsBufferImpl) Close ¶
func (b *PayloadsBufferImpl) Close()
func (*PayloadsBufferImpl) Next ¶
func (b *PayloadsBufferImpl) Next() uint64
func (*PayloadsBufferImpl) Pop ¶
func (b *PayloadsBufferImpl) Pop() *proto.Payload
func (*PayloadsBufferImpl) Push ¶
func (b *PayloadsBufferImpl) Push(payload *proto.Payload)
func (*PayloadsBufferImpl) Ready ¶
func (b *PayloadsBufferImpl) Ready() chan struct{}
func (*PayloadsBufferImpl) Size ¶
func (b *PayloadsBufferImpl) Size() int
type ServicesMediator ¶
type ServicesMediator struct { GossipAdapter MCSAdapter }
type StateConfig ¶
type StateConfig struct { StateCheckInterval time.Duration StateResponseTimeout time.Duration StateBatchSize uint64 StateMaxRetries int StateBlockBufferSize int StateChannelSize int StateEnabled bool }
func GlobalConfig ¶
func GlobalConfig() *StateConfig
Click to show internal directories.
Click to hide internal directories.