Documentation
¶
Index ¶
- type Reader
- func (r *Reader) Ack(ctx context.Context, msgIDs [][]byte, ackHandler func(error), ...)
- func (r *Reader) Close()
- func (r *Reader) EncodeMsgID(buf []byte, topic string, args ...any) []byte
- func (r *Reader) Fetch(ctx context.Context, n uint32, fetchHandler func(n uint32, err error), ...)
- func (r *Reader) HFetch(ctx context.Context, n uint32, fetchHandler func(n uint32, err error), ...)
- func (r *Reader) HSubscribe(ctx context.Context, ...) error
- func (r *Reader) IsAutoCommit() bool
- func (r *Reader) MsgIDStaticArgsLen() int
- func (r *Reader) Nack(ctx context.Context, msgIDs [][]byte, nackHandler func(error), ...)
- func (r *Reader) Subscribe(ctx context.Context, h func(message []byte, topic string, args ...any)) error
- type Writer
- func (w *Writer) BeginTx(_ context.Context) error
- func (w *Writer) Close() error
- func (w *Writer) CommitTx(_ context.Context) error
- func (w *Writer) Endpoint() string
- func (w *Writer) Flush(_ context.Context) error
- func (w *Writer) HProduce(_ context.Context, msg []byte, headers [][]byte, callback func(err error))
- func (w *Writer) Produce(_ context.Context, msg []byte, callback func(err error))
- func (w *Writer) RollbackTx(_ context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) EncodeMsgID ¶
func (*Reader) HSubscribe ¶
func (*Reader) IsAutoCommit ¶
func (*Reader) MsgIDStaticArgsLen ¶
Click to show internal directories.
Click to hide internal directories.