pulsectl

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PulseController

type PulseController struct {
	core.PhaseControllerTemplate
	core.HostPacketDispatcherTemplate
	R *core.FullRealm
	// contains filtered or unexported fields
}

func NewPulseController

func NewPulseController(ignoreHostVerificationForPulses bool) *PulseController

func (*PulseController) CreatePacketDispatcher

func (*PulseController) DispatchHostPacket

func (p *PulseController) DispatchHostPacket(ctx context.Context, packet transport.PacketParser,
	from endpoints.Inbound, flags coreapi.PacketVerifyFlags) error

func (*PulseController) GetPacketType

func (*PulseController) GetPacketType() []phases.PacketType

func (*PulseController) HasCustomVerifyForHost

func (p *PulseController) HasCustomVerifyForHost(from endpoints.Inbound, verifyFlags coreapi.PacketVerifyFlags) bool

type PulsePrepController

type PulsePrepController struct {
	core.PrepPhaseControllerTemplate
	core.HostPacketDispatcherTemplate
	R *core.PrepRealm
	// contains filtered or unexported fields
}

func NewPulsePrepController

func NewPulsePrepController(s PulseSelectionStrategy, ignoreHostVerificationForPulses bool) *PulsePrepController

func (*PulsePrepController) CreatePacketDispatcher

func (p *PulsePrepController) CreatePacketDispatcher(pt phases.PacketType, realm *core.PrepRealm) population.PacketDispatcher

func (*PulsePrepController) DispatchHostPacket

func (p *PulsePrepController) DispatchHostPacket(ctx context.Context, packet transport.PacketParser,
	from endpoints.Inbound, flags coreapi.PacketVerifyFlags) error

func (*PulsePrepController) GetPacketType

func (*PulsePrepController) GetPacketType() []phases.PacketType

func (*PulsePrepController) HasCustomVerifyForHost

func (p *PulsePrepController) HasCustomVerifyForHost(from endpoints.Inbound, verifyFlags coreapi.PacketVerifyFlags) bool

type PulseSelectionStrategy

type PulseSelectionStrategy interface {
	HandlePulsarPacket(ctx context.Context, p transport.PulsePacketReader,
		from endpoints.Inbound, fromPulsar bool) (bool, error)
}

type PulseSelectionStrategyFactory

type PulseSelectionStrategyFactory interface {
	CreatePulseSelectionStrategy(population census.OnlinePopulation, config api.LocalNodeConfiguration) PulseSelectionStrategy
}

func NewTakeFirstSelectionStrategyFactory

func NewTakeFirstSelectionStrategyFactory() PulseSelectionStrategyFactory

Jump to

Keyboard shortcuts

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