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 ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { SetConsumer(ctx context.Context, name, subj string) (err error) ReceiveMessages(ctx context.Context, queue, subj string, batchSize uint32, consume util.ConsumeFunc[[]*pb.CloudEvent]) (err error) }
func NewService ¶
func NewService(client ServiceClient) Service
func NewServiceMock ¶
func NewServiceMock(msgs []*pb.CloudEvent) Service
Click to show internal directories.
Click to hide internal directories.