Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseSubscriber ¶
type BaseSubscriber struct {
// contains filtered or unexported fields
}
func (*BaseSubscriber) GetKey ¶
func (bs *BaseSubscriber) GetKey() Key
func (*BaseSubscriber) OnSubscribe ¶
func (bs *BaseSubscriber) OnSubscribe(key Key)
type IBaseSubscriber ¶
type IPublisher ¶
type ISubscriber ¶
type ISubscriber interface { IBaseSubscriber OnEvent(ctx ...any) }
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func (*Publisher) Subscribe ¶
func (pub *Publisher) Subscribe(topic TopicType, sub ISubscriber) bool
func (*Publisher) UnSubscribe ¶
func (*Publisher) UnSubscribeKey ¶
type SubscriberSet ¶
Click to show internal directories.
Click to hide internal directories.