Documentation
¶
Index ¶
Constants ¶
View Source
const (
KindRedis transport.Kind = "redis"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func NewServer ¶
func NewServer(opts ...ServerOption) *Server
func (*Server) RegisterSubscriber ¶
type ServerOption ¶
type ServerOption func(o *Server)
func Address ¶
func Address(addr string) ServerOption
func IdleTimeout ¶
func IdleTimeout(timeout time.Duration) ServerOption
func Logger ¶
func Logger(logger log.Logger) ServerOption
func ReadTimeout ¶
func ReadTimeout(timeout time.Duration) ServerOption
func TLSConfig ¶
func TLSConfig(c *tls.Config) ServerOption
type SubscribeOption ¶
type SubscribeOption struct {
// contains filtered or unexported fields
}
type SubscribeOptionMap ¶
type SubscribeOptionMap map[string]*SubscribeOption
type SubscriberMap ¶
type SubscriberMap map[string]broker.Subscriber
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport is a redis transport.
func (*Transport) ReplyHeader ¶
ReplyHeader returns the reply header.
func (*Transport) RequestHeader ¶
RequestHeader returns the request header.
func (*Transport) SelectFilters ¶
SelectFilters returns the client select filters.
Click to show internal directories.
Click to hide internal directories.