You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
253 B
15 lines
253 B
3 years ago
|
package events
|
||
|
|
||
|
import "context"
|
||
|
|
||
|
type Receiver interface {
|
||
|
Receive(ctx context.Context) (Message, error)
|
||
|
Ack(msg Message) error
|
||
|
Nack(msg Message) error
|
||
|
Close() error
|
||
|
}
|
||
|
|
||
|
type ReceiverBuilder interface {
|
||
|
Build(subReq SubRequest) (Receiver, error)
|
||
|
}
|