Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bus ¶
type Bus[Key, Event any] struct { // contains filtered or unexported fields }
func (*Bus[Key, Event]) AddHandler ¶
type ChatEvent ¶
type ChatEvent struct { ChatID *commonpb.ChatId Timestamp time.Time MetadataUpdates []*chatpb.MetadataUpdate MemberUpdates []*chatpb.MemberUpdate MessageUpdate *messagingpb.Message FlushedMessages []*messagingpb.Message PointerUpdate *messagingpb.PointerUpdate IsTyping *messagingpb.IsTyping }
type HandlerFunc ¶
type HandlerFunc[Key, Event any] func(Key, Event)
HandlerFunc is an adapter to allow the use of ordinary functions as Handlers.
func (HandlerFunc[Key, Event]) OnEvent ¶
func (f HandlerFunc[Key, Event]) OnEvent(key Key, e Event)
OnEvent calls f(key, e).
type ProfileGenerator ¶
type ProtoEventStream ¶
type ProtoEventStream[E any, P proto.Message] struct { sync.Mutex // contains filtered or unexported fields }
func NewProtoEventStream ¶
func (*ProtoEventStream[E, P]) Channel ¶
func (s *ProtoEventStream[E, P]) Channel() <-chan P
func (*ProtoEventStream[E, P]) Close ¶
func (s *ProtoEventStream[E, P]) Close()
func (*ProtoEventStream[E, P]) ID ¶
func (s *ProtoEventStream[E, P]) ID() string
Click to show internal directories.
Click to hide internal directories.