-
Notifications
You must be signed in to change notification settings - Fork 0
/
def.go
49 lines (39 loc) · 1.37 KB
/
def.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package redis
import (
redis "github.com/Bofry/lib-redis-stream"
"github.com/Bofry/worker-redis/internal"
"github.com/Bofry/worker-redis/internal/middleware"
)
const (
StreamAsteriskID = redis.StreamAsteriskID
StreamLastDeliveredID = redis.StreamLastDeliveredID
StreamZeroID = redis.StreamZeroID
StreamZeroOffset = redis.StreamZeroOffset
StreamNeverDeliveredOffset = redis.StreamNeverDeliveredOffset
)
type (
ProducerConfig = redis.ProducerConfig
Producer = redis.Producer
UniversalOptions = redis.UniversalOptions
Message = redis.Message
MessageContent = redis.MessageContent
AdminClient = redis.AdminClient
Forwarder = redis.Forwarder
ForwarderRunner = redis.ForwarderRunner
EventEvidence = middleware.EventEvidence
LoggingService = middleware.LoggingService
EventLog = middleware.EventLog
MessageObserver = internal.MessageObserver
MessageObserverAffair = internal.MessageObserverAffair
MessageHandler = internal.MessageHandler
Worker = internal.RedisWorker
Context = internal.Context
ReplyCode = internal.ReplyCode
ErrorHandler = internal.ErrorHandler
)
func NewAdminClient(opt *UniversalOptions) (*AdminClient, error) {
return redis.NewAdminClient(opt)
}
func NewForwarder(config *ProducerConfig) (*Forwarder, error) {
return redis.NewForwarder(config)
}