Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server 将现有 queue.Queue 适配为 Kratos transport.Server。
func NewServer ¶
func NewServer(opts ...ServerOption) (*Server, error)
NewServer 创建队列 transport,默认使用本地内存队列。
type ServerOption ¶
type ServerOption func(*options)
ServerOption 配置队列 transport。
func WithRedis ¶
func WithRedis(redisConf *configv1.Data_Redis, queueConf *configv1.Data_Queue) ServerOption
WithRedis 选择 Redis 队列,并设置 Redis 与队列配置。
Click to show internal directories.
Click to hide internal directories.