Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Observer ¶
type Observer struct {
// contains filtered or unexported fields
}
func NewObserver ¶
func (*Observer) Subscribe ¶
func (o *Observer) Subscribe(db int, pattern string, interval time.Duration, notify Notify) map[string]string
Подписывается на изменение строкового ключа в редисе db: номер базы редиса pattern: ключ в редисе interval: интервал проверок значения notify: функция обратного вызова при изменении ключа
func (*Observer) Unsubscribe ¶
Click to show internal directories.
Click to hide internal directories.