Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber( conn *nats.Conn, sc SubscriberSource, log *slog.Logger, timeout time.Duration, ) *Subscriber
func (*Subscriber) Subscribe ¶
func (s *Subscriber) Subscribe() error
type SubscriberChangedEvent ¶
type SubscriberDeleter ¶
type SubscriberDeleter interface {
Delete(ctx context.Context, sub subscriber.Subscriber) error
}
type SubscriberSaver ¶
type SubscriberSaver interface {
Save(ctx context.Context, sub subscriber.Subscriber) error
}
type SubscriberSource ¶
type SubscriberSource interface { SubscriberSaver SubscriberDeleter }
Click to show internal directories.
Click to hide internal directories.