overflow_subscriber/subscriber.go

11 lines
199 B
Go
Raw Normal View History

2017-08-30 02:06:34 +00:00
package overflow_subscriber
type (
OnSubscribeFunc func(channel string, payload string)
)
type Subscriber interface {
Subscribe(channel string, cb OnSubscribeFunc)
Unsubscribe(channel string)
}