Documentation
¶
Index ¶
- Variables
- type Buffer
- func (b *Buffer) Add(block *schema.TlogBlock)
- func (b *Buffer) Delete(seq uint64)
- func (b *Buffer) Len() int
- func (b *Buffer) MinSequence() uint64
- func (b *Buffer) NeedResend(seq uint64) bool
- func (b *Buffer) Promote(seq uint64) error
- func (b *Buffer) TimedOut(ctx context.Context) <-chan *schema.TlogBlock
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRetryExceeded = errors.New("retry exceeded")
)
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer defines buffer of tlog blocks that already sent but still waiting to be succesfully received by the server
func (*Buffer) MinSequence ¶
MinSequence returns min sequence that this buffer will/currently has.
func (*Buffer) NeedResend ¶
Returns true this seq need to be re-send
Click to show internal directories.
Click to hide internal directories.