Documentation ¶
Index ¶
- Constants
- type Publisher
- type RedisClient
- func (r *RedisClient) Config() interface{}
- func (r *RedisClient) Context() context.Context
- func (r *RedisClient) Init(cfg config.Config, log logger.Logger, vld validator.Validator, ...) error
- func (r *RedisClient) InitWithConfig(log logger.Logger, cfg *RedisConfig) error
- func (r *RedisClient) NativeHandler() *redis.Client
- func (r *RedisClient) Shutdown(ctx context.Context) error
- type RedisConfig
- type Subscriber
Constants ¶
View Source
const Provider string = "redis"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Publisher ¶
type Publisher struct { RedisClient pubsub.PublisherBase }
func NewPublisher ¶
func NewPublisher(serializer ...message.Serializer) *Publisher
type RedisClient ¶
type RedisClient struct { RedisConfig // contains filtered or unexported fields }
func (*RedisClient) Config ¶
func (r *RedisClient) Config() interface{}
func (*RedisClient) Context ¶
func (r *RedisClient) Context() context.Context
func (*RedisClient) InitWithConfig ¶
func (r *RedisClient) InitWithConfig(log logger.Logger, cfg *RedisConfig) error
func (*RedisClient) NativeHandler ¶
func (r *RedisClient) NativeHandler() *redis.Client
type RedisConfig ¶
type Subscriber ¶
type Subscriber struct { RedisClient pubsub_subscriber.SubscriberBase // contains filtered or unexported fields }
func NewSubscriber ¶
func NewSubscriber(app app_context.Context, serializer ...message.Serializer) *Subscriber
func (*Subscriber) Subscribe ¶
func (s *Subscriber) Subscribe(topic pubsub_subscriber.Topic) (string, error)
func (*Subscriber) Unsubscribe ¶
func (s *Subscriber) Unsubscribe(topicName string, subscriptionId ...string)
Click to show internal directories.
Click to hide internal directories.