Documentation ¶
Index ¶
- type InMemoryBuffer
- func (b *InMemoryBuffer) Ack(_ context.Context, offsets []isb.Offset) []error
- func (b *InMemoryBuffer) Close() error
- func (b *InMemoryBuffer) GetName() string
- func (b *InMemoryBuffer) IsEmpty() bool
- func (b *InMemoryBuffer) IsFull() bool
- func (b *InMemoryBuffer) Pending(_ context.Context) (int64, error)
- func (b *InMemoryBuffer) Rate(_ context.Context) (float64, error)
- func (b *InMemoryBuffer) Read(ctx context.Context, count int64) ([]*isb.ReadMessage, error)
- func (b *InMemoryBuffer) String() string
- func (b *InMemoryBuffer) Write(_ context.Context, messages []isb.Message) ([]isb.Offset, []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryBuffer ¶
type InMemoryBuffer struct {
// contains filtered or unexported fields
}
InMemoryBuffer implements ISB interface.
func NewInMemoryBuffer ¶
func NewInMemoryBuffer(name string, size int64) *InMemoryBuffer
NewInMemoryBuffer returns a new buffer.
func (*InMemoryBuffer) GetName ¶
func (b *InMemoryBuffer) GetName() string
GetName returns the buffer name.
func (*InMemoryBuffer) IsEmpty ¶
func (b *InMemoryBuffer) IsEmpty() bool
IsEmpty returns whether the queue is empty.
func (*InMemoryBuffer) IsFull ¶
func (b *InMemoryBuffer) IsFull() bool
IsFull returns whether the queue is full.
func (*InMemoryBuffer) Pending ¶ added in v0.5.3
func (b *InMemoryBuffer) Pending(_ context.Context) (int64, error)
func (*InMemoryBuffer) Rate ¶ added in v0.5.3
func (b *InMemoryBuffer) Rate(_ context.Context) (float64, error)
func (*InMemoryBuffer) Read ¶
func (b *InMemoryBuffer) Read(ctx context.Context, count int64) ([]*isb.ReadMessage, error)
Click to show internal directories.
Click to hide internal directories.