Documentation ¶
Index ¶
Constants ¶
View Source
const ( MessageFilterType pubsub.MessageFilterKind = iota MessageFilterIgnoredSession MessageFilterPermissions MessageFilterRoom )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterMap ¶
func NewFilterMap ¶
func NewFilterMap() FilterMap
func (FilterMap) WithIgnoredSession ¶
func (FilterMap) WithPermissions ¶
func (m FilterMap) WithPermissions(perm permission.Permission) FilterMap
func (FilterMap) WithType ¶
func (m FilterMap) WithType(kind MessageType) FilterMap
type MessageTargetNode ¶
type MessageTargetNode string
func NewNodeTarget ¶
func NewNodeTarget(id string) MessageTargetNode
func (MessageTargetNode) Build ¶
func (t MessageTargetNode) Build() string
type MessageTargetRoom ¶
func NewRoomTarget ¶
func NewRoomTarget(id model.RoomId) MessageTargetRoom
func (MessageTargetRoom) Build ¶
func (t MessageTargetRoom) Build() string
type MessageTargetSession ¶
type MessageTargetSession string
func NewSessionTarget ¶
func NewSessionTarget(id string) MessageTargetSession
func (MessageTargetSession) Build ¶
func (t MessageTargetSession) Build() string
type MessageTargetUser ¶
func NewUserTarget ¶
func NewUserTarget(id model.UserId) MessageTargetUser
func (MessageTargetUser) Build ¶
func (t MessageTargetUser) Build() string
type SubscriptionManager ¶
type SubscriptionManager = pubsub.SubscriptionManager[*Message]
func NewSubscriptionManager ¶
func NewSubscriptionManager(client pubsub.Client) *SubscriptionManager
Click to show internal directories.
Click to hide internal directories.