16 lines
305 B
Go
16 lines
305 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)
|
||
|
webS := newWebSubscriberHandler(ctx, "web")
|
||
|
|
||
|
s.Subscribe(webS)
|
||
|
}
|