overflow_subscriber/subscriber.go
2017-08-30 11:06:34 +09:00

11 lines
199 B
Go

package overflow_subscriber
type (
OnSubscribeFunc func(channel string, payload string)
)
type Subscriber interface {
Subscribe(channel string, cb OnSubscribeFunc)
Unsubscribe(channel string)
}