Documentation
¶
Index ¶
- func CmdDownloadSegment(wait time.Duration) loop.Cmd
- func CmdWaitFirstTier2MapSegmentStreamed(wait time.Duration) loop.Cmd
- func CmdWalkerCompleted() loop.Cmd
- type MessageBuffer
- type MsgDownloadSegment
- type MsgFileDownloaded
- type MsgFileNotPresent
- type MsgFileReadTransientError
- type MsgWaitFirstTier2MapSegmentStreamed
- type MsgWalkerCompleted
- type Walker
- func (r *Walker) CmdDownloadCurrentSegment(waitBefore time.Duration) loop.Cmd
- func (r *Walker) IsCompleted() bool
- func (r *Walker) IsNoopMode() bool
- func (r *Walker) IsWorking() bool
- func (r *Walker) MarkNotWorking()
- func (r *Walker) MarkWorking()
- func (r *Walker) NextSegment()
- func (r *Walker) Progress() (first, current, last int)
- func (r *Walker) WorkingDuration() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdWaitFirstTier2MapSegmentStreamed ¶ added in v1.15.9
func CmdWalkerCompleted ¶
Types ¶
type MessageBuffer ¶ added in v1.18.0
type MessageBuffer struct {
DataSize int
// contains filtered or unexported fields
}
func NewMessageBuffer ¶ added in v1.18.0
func NewMessageBuffer(maxBufferedMessage int, logger *zap.Logger) *MessageBuffer
func (*MessageBuffer) Append ¶ added in v1.18.0
func (b *MessageBuffer) Append(msg *pbsubstreamsrpcv2.BlockScopedData, dataSize int)
func (*MessageBuffer) Flush ¶ added in v1.18.0
func (b *MessageBuffer) Flush(streamSrv *response.Stream) error
func (*MessageBuffer) Len ¶ added in v1.18.0
func (b *MessageBuffer) Len() int
func (*MessageBuffer) ShouldFlush ¶ added in v1.18.0
func (b *MessageBuffer) ShouldFlush() bool
type MsgFileDownloaded ¶
type MsgFileNotPresent ¶
type MsgFileReadTransientError ¶ added in v1.17.11
type MsgWaitFirstTier2MapSegmentStreamed ¶ added in v1.15.9
type MsgWalkerCompleted ¶
type Walker ¶
func (*Walker) CmdDownloadCurrentSegment ¶
func (*Walker) IsCompleted ¶
func (*Walker) IsNoopMode ¶ added in v1.14.6
func (*Walker) MarkNotWorking ¶
func (r *Walker) MarkNotWorking()
func (*Walker) MarkWorking ¶
func (r *Walker) MarkWorking()
func (*Walker) NextSegment ¶
func (r *Walker) NextSegment()
func (*Walker) WorkingDuration ¶ added in v1.17.11
WorkingDuration returns how long the walker has been in working state. Returns 0 if not currently working.
Click to show internal directories.
Click to hide internal directories.