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 = "open" Presence = "presence" Roster = "roster" WhiteList = "whitelist" Never = "never" OnSub = "on_sub" 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 ¶
NewOptionsFromMap 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.