package interfaces
Import Path
github.com/redis/go-redis/v9/internal/interfaces (on go.dev)
Dependency Relation
imports 3 packages, and imported by 2 packages
Involved Source Files
Package interfaces provides shared interfaces used by both the main redis package
and the maintnotifications upgrade package to avoid circular dependencies.
Package-Level Type Names (total 3)
ClientInterface defines the interface that clients must implement for maintnotifications upgrades.
GetOptions returns the client options.
GetPushProcessor returns the client's push notification processor.
func github.com/redis/go-redis/v9/maintnotifications.NewManager(client ClientInterface, pool pool.Pooler, config *maintnotifications.Config) (*maintnotifications.Manager, error)
NotificationProcessor is (most probably) a push.NotificationProcessor
forward declaration to avoid circular imports
( NotificationProcessor) GetHandler(pushNotificationName string) interface{}
( NotificationProcessor) RegisterHandler(pushNotificationName string, handler interface{}, protected bool) error
( NotificationProcessor) UnregisterHandler(pushNotificationName string) error
func ClientInterface.GetPushProcessor() NotificationProcessor
OptionsInterface defines the interface for client options.
Uses an adapter pattern to avoid circular dependencies.
GetAddr returns the connection address.
GetNetwork returns the network type.
GetNodeAddress returns the address of the Redis node as reported by the server.
For cluster clients, this is the endpoint from CLUSTER SLOTS before any transformation.
For standalone clients, this defaults to Addr.
GetPoolSize returns the connection pool size.
GetProtocol returns the protocol version.
GetReadTimeout returns the read timeout.
GetWriteTimeout returns the write timeout.
IsTLSEnabled returns true if TLS is enabled.
NewDialer returns a new dialer function for the connection.
func ClientInterface.GetOptions() OptionsInterface
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |