deprecated_overflow_gateway.../subscribe/redis.go

18 lines
381 B
Go
Raw Normal View History

2017-09-11 02:24:18 +00:00
package subscribe
import (
"context"
ofs_redis "git.loafle.net/overflow/overflow_subscriber/redis"
"github.com/garyburd/redigo/redis"
)
func Subscribe(ctx context.Context, redisConn redis.Conn) {
s := ofs_redis.New(ctx, redisConn)
probeS := newProbeSubscriberHandler(ctx, "probe")
authS := newAuthSubscriberHandler(ctx, "auth")
s.Subscribe(probeS)
s.Subscribe(authS)
}