mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-04 17:27:23 -05:00
10 lines
197 B
Go
10 lines
197 B
Go
package app
|
|
|
|
type PubsubMessage []byte
|
|
type TopicHandler func(PubsubMessage)
|
|
|
|
type Pubsub interface {
|
|
Publish(topic string, message PubsubMessage)
|
|
Subscribe(topic string, handler TopicHandler)
|
|
}
|