deprecated_overflow_gateway.../subscribe/redis.go
crusader fb71acaaa5 ing
2017-10-13 14:32:56 +09:00

18 lines
383 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)
}