Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Error(args ...interface{}) Errorf(format string, args ...interface{}) }
Logger :nodoc:
type NATS ¶
type NATS interface { Publish(subject string, value []byte) error Subscribe(subject string, cb stan.MsgHandler, opts ...stan.SubscriptionOption) (stan.Subscription, error) QueueSubscribe(subject, queueGroup string, cb stan.MsgHandler, opts ...stan.SubscriptionOption) (stan.Subscription, error) Close() error }
NATS :nodoc:
func NewNATSWithCallback ¶
func NewNATSWithCallback(clusterID, clientID, url string, fn NatsCallback, stanOptions []stan.Option, options ...Option) (NATS, error)
NewNATSWithCallback IMPORTANT! Not to send any stan.NatsURL or stan.SetConnectionLostHandler as options
type NatsMessage ¶
type NatsMessage struct { ID int64 `json:"id"` UserID int64 `json:"user_id"` Type EventType `json:"type"` Body string `json:"body,omitempty"` Time string `json:"time"` }
NatsMessage :nodoc:
type Option ¶
func WithDeadMessageRedisKey ¶ added in v1.2.0
func WithLogger ¶
func WithReconnectInterval ¶
Click to show internal directories.
Click to hide internal directories.