Documentation
¶
Index ¶
Constants ¶
View Source
const ( Owner = "owner" Member = "member" Publisher = "publisher" Outcast = "outcast" )
affiliation definitions
View Source
const ( None = "none" Subscribed = "subscribed" )
subscription definitions
View Source
const ( // Open represents 'open' access model. Open = "open" // Presence represents 'presence' access model. Presence = "presence" // Roster represents 'roster' access model. Roster = "roster" // WhiteList represents 'whitelist' access model. WhiteList = "whitelist" // Never represents 'never' send last published item option. Never = "never" // OnSub represents 'on_sub' send last published item option. OnSub = "on_sub" // OnSubAndPresence represents 'on_sub_and_presence' send last published item option. OnSubAndPresence = "on_sub_and_presence" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Affiliation ¶
Affiliation represents a pubsub affiliation
type Item ¶
Item represents a pubsub node item
type Node ¶
Node represents a pubsub node
type Options ¶
type Options struct { Title string DeliverNotifications bool DeliverPayloads bool PersistItems bool MaxItems int64 AccessModel string SendLastPublishedItem string RosterGroupsAllowed []string NotificationType string NotifyConfig bool NotifyDelete bool NotifySub bool }
Options represents pubsub node configuration options
func NewOptionsFromMap ¶
NewOptionsFromMap returns a new node Options instance derived from an input map.
func NewOptionsFromSubmitForm ¶
NewOptionsFromSubmitForm returns a new node Options instance derived from a submit form.
func (*Options) ResultForm ¶
ResultForm returns Options result form representation.
type Subscription ¶
Subscription represents a pubsub node subscription
Click to show internal directories.
Click to hide internal directories.