Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisTime ¶
func GetRedisTime(pool ConnGetter) (redisTime time.Time, err error)
GetRedisTime returns the redis server's current timestamp
func GetRequest ¶
func GetRequest(ctx context.Context, pool ConnGetter, logger *log.Logger) (request *protocol.Request, err error)
GetRequest retrieves a hash request from redis. If no requests are currently in the queue, it blocks until one is available.
func PublishResponse ¶
func PublishResponse(res *protocol.Response, responseKey string, pool ConnGetter, logger *log.Logger)
PublishResponse publishes the provided response via redis, including automatic retry and responseKey concatenation with the prefix from the config package.
Types ¶
type ConnGetter ¶
Click to show internal directories.
Click to hide internal directories.