deprecated_overflow_gateway.../subscribe/redis.go
2017-09-11 11:24:18 +09:00

18 lines
381 B
Go

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)
}