Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternal = errors.New("queue: internal failure")
View Source
var ErrQueueMissing = errors.New("missing queue")
Functions ¶
func NewMessagesWriterMock ¶
func NewMessagesWriterMock() model.MessageWriter
Types ¶
type Service ¶
type Service interface { SetQueue(ctx context.Context, name string, limit uint32) (err error) NewQueueWriter(ctx context.Context, name string) (mw model.MessageWriter, err error) ReceiveMessages(ctx context.Context, queue string, batchSize uint32, consume util.ConsumeFunc[[]*pb.CloudEvent]) (n uint32, err error) }
func NewService ¶
func NewService(client ServiceClient) Service
func NewServiceMock ¶
func NewServiceMock() Service
Click to show internal directories.
Click to hide internal directories.