redis

package
v0.0.0-...-237b7d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

redis @author LanguageY++2013 2023/5/16 17:00 @company soulgame

redis @author LanguageY++2013 2023/5/12 09:27 @company soulgame

redis @author LanguageY++2013 2023/5/16 17:06 @company soulgame

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(s *RedisStreamSubscriber)

func WithConsumer

func WithConsumer(consumer string) Option

func WithGoroutineNum

func WithGoroutineNum(num int) Option

func WithReadTimeout

func WithReadTimeout(timeout time.Duration) Option

type RedisStreamPublisher

type RedisStreamPublisher struct {
	// contains filtered or unexported fields
}

func NewRedisStreamPublisher

func NewRedisStreamPublisher(conf redis_wrapper.Configure) *RedisStreamPublisher

func (RedisStreamPublisher) Name

func (p RedisStreamPublisher) Name() string

func (RedisStreamPublisher) Send

func (p RedisStreamPublisher) Send(topic string, ev *open.MatchEvent) error

type RedisStreamSubscriber

type RedisStreamSubscriber struct {
	pubsub.EventHandlers
	// contains filtered or unexported fields
}

func NewRedisStreamSubscriber

func NewRedisStreamSubscriber(conf redis_wrapper.Configure, topic string, group string, opts ...Option) *RedisStreamSubscriber

func (*RedisStreamSubscriber) Name

func (s *RedisStreamSubscriber) Name() string

func (*RedisStreamSubscriber) Start

func (s *RedisStreamSubscriber) Start()

type StreamEntry

type StreamEntry struct {
	redis_wrapper.StreamBaseMsg
	open.MatchEvent
	MatchEventType int `redis:"MatchEventType"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL