11 lines
199 B
Go
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)
|
|
}
|