Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolVersion uint8 = 2 MinimumProtocolVersion uint8 = 2 )
protocol ooptions
Variables ¶
View Source
var (
ErrInvalidURI = errors.New("invalid uri")
)
errors ...
Functions ¶
This section is empty.
Types ¶
type ChannelReader ¶
type ChannelReader struct {
// contains filtered or unexported fields
}
ChannelReader ...
func (*ChannelReader) HandleMessage ¶
func (c *ChannelReader) HandleMessage(b []byte) (err error)
HandleMessage ...
type DeliveryMode ¶
type DeliveryMode int
const ( LowLatencyDeliveryMode DeliveryMode BestEffortDeliveryMode MandatoryDeliveryMode )
type MetricsSnapshot ¶
type MetricsSnapshot struct {
Read TransferMetricsSnapshot
Write TransferMetricsSnapshot
}
type PeerMetricsSnapshot ¶
type PeerMetricsSnapshot struct {
MetricsSnapshot
Swarms map[*Swarm]MetricsSnapshot
}
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) RunPeer ¶
func (r *Runner) RunPeer(id []byte, w Conn) (*ChannelReader, *RunnerPeer)
type RunnerPeer ¶
type RunnerPeer struct {
// contains filtered or unexported fields
}
RunnerPeer ...
func (*RunnerPeer) MetricsSnapshot ¶
func (p *RunnerPeer) MetricsSnapshot(t timeutil.Time) PeerMetricsSnapshot
type SchedulingMethod ¶
type SchedulingMethod int
const ( SeedSchedulingMethod SchedulingMethod = iota + 1 PeerSchedulingMethod )
type SwarmOptions ¶
type SwarmOptions struct {
Label string
ChunkSize int
ChunksPerSignature int
StreamCount int
LiveWindow int
Integrity integrity.VerifierOptions
SchedulingMethod SchedulingMethod
DeliveryMode DeliveryMode
BufferLayout store.BufferLayout
}
SwarmOptions ...
func (SwarmOptions) IntegrityVerifierOptions ¶
func (o SwarmOptions) IntegrityVerifierOptions() integrity.SwarmVerifierOptions
IntegrityVerifierOptions ...
func (SwarmOptions) IntegrityWriterOptions ¶
func (o SwarmOptions) IntegrityWriterOptions() integrity.SwarmWriterOptions
IntegrityWriterOptions ...
type TransferMetricsSnapshot ¶
type WriterOptions ¶
type WriterOptions struct {
SwarmOptions SwarmOptions
Key *key.Key
}
WriterOptions ...
Source Files
¶
Click to show internal directories.
Click to hide internal directories.