Documentation ¶
Index ¶
Constants ¶
View Source
const (
RedisNotificationList = "STONE-NOTIFICATIONS"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `envconfig:"REDIS_ADDR" required:"true"` Port string `envconfig:"REDIS_PORT" required:"true"` Password string `envconfig:"REDIS_PASSWORD"` UseTLS bool `envconfig:"REDIS_USE_TLS" default:"false"` MaxIdle int `envconfig:"REDIS_MAX_IDLE" default:"100"` MaxActive int `envconfig:"REDIS_MAX_ACTIVE" default:"1000"` IdleTimeout time.Duration `envconfig:"REDIS_IDLE_TIMEOUT" default:"1m"` DialConnectTimeout time.Duration `envconfig:"REDIS_CONNECT_TIMEOUT" default:"1s"` DialReadTimeout time.Duration `envconfig:"REDIS_READ_TIMEOUT" default:"300ms"` DialWriteTimeout time.Duration `envconfig:"REDIS_WRITE_TIMEOUT" default:"300ms"` }
type Notification ¶
type Notification struct { EventType string EventID string Body json.RawMessage }
type RedisNotifier ¶
type RedisNotifier struct {
// contains filtered or unexported fields
}
func New ¶
func New() *RedisNotifier
Click to show internal directories.
Click to hide internal directories.