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.
 
 
 
 
kratos/events/receiver.go

14 lines
253 B

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)
}