Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultURL = "http://localhost:3000" DefaultAPIPath = "/api/v1" )
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { AudioURL string `json:"audio_url,omitempty"` AuthorName string `json:"author_name,omitempty"` AuthorLink string `json:"author_link,omitempty"` AuthorIcon string `json:"author_icon,omitempty"` Collapsed bool `json:"collapsed,omitempty"` Color string `json:"color,omitempty"` Fields []Field `json:"fields,omitempty"` ImageURL string `json:"image_url,omitempty"` MessageLink string `json:"message_link,omitempty"` Text string `json:"text,omitempty"` ThumbURL string `json:"thumb_url,omitempty"` Title string `json:"title,omitempty"` TitleLink string `json:"title_link,omitempty"` TitleLinkDownload bool `json:"title_link_download,omitempty"` Timestamp time.Time `json:"ts,omitempty"` VideoURL string `json:"video_url,omitempty"` }
type CustomFields ¶
type CustomFields map[string]interface{}
type Me ¶
type Me struct { ID string `json:"_id"` Name string `json:"name"` Emails []Email `json:"emails"` Status string `json:"status"` StatusConnection string `json:"statusConnection"` Username string `json:"username"` UTCOffset int64 `json:"utcOffset"` Active bool `json:"active"` Roles []string `json:"roles"` Settings Settings `json:"settings"` CustomFields CustomFields `json:"customFields"` Success bool `json:"success"` }
type Message ¶
type Message struct { Alias string `json:"alias,omitempty"` Avatar string `json:"avatar,omitempty"` Channel string `json:"channel,omitempty"` Emoji string `json:"emoji,omitempty"` RoomID string `json:"room_id,omitempty"` Text string `json:"text,omitempty"` Attachments []Attachment `json:"attachments,omitempty"` }
type Options ¶
type Options struct { URL string APIPath string HookPath string Channels []string Hooks map[string]string Debug bool Creds Creds }
func DefaultOptions ¶
func DefaultOptions() *Options
type Preferences ¶
type Preferences struct { EnableAutoAway bool `json:"enableAutoAway"` IdleTimeoutLimit int64 `json:"idleTimeoutLimit"` DesktopNotificationDuration int64 `json:"desktopNotificationDuration"` AudioNotifications string `json:"audioNotifications"` DesktopNotifications string `json:"desktopNotifications"` MobileNotifications string `json:"mobileNotifications"` UnreadAlert bool `json:"unreadAlert"` UseEmojis bool `json:"useEmojis"` ConvertASCIIEmoji bool `json:"convertAsciiEmoji"` AutoImageLoad bool `json:"autoImageLoad"` SaveMobileBandwidth bool `json:"saveMobileBandwidth"` CollapseMediaByDefault bool `json:"collapseMediaByDefault"` HideUsernames bool `json:"hideUsernames"` HideRoles bool `json:"hideRoles"` HideFlexTab bool `json:"hideFlexTab"` HideAvatars bool `json:"hideAvatars"` RoomsListExhibitionMode string `json:"roomsListExhibitionMode"` SidebarViewMode string `json:"sidebarViewMode"` SidebarHideAvatar bool `json:"sidebarHideAvatar"` SidebarShowUnread bool `json:"sidebarShowUnread"` SidebarShowFavorites bool `json:"sidebarShowFavorites"` SendOnEnter string `json:"sendOnEnter"` MessageViewMode int64 `json:"messageViewMode"` EmailNotificationMode string `json:"emailNotificationMode"` RoomCounterSidebar bool `json:"roomCounterSidebar"` NewRoomNotification string `json:"newRoomNotification"` NewMessageNotification string `json:"newMessageNotification"` MuteFocusedConversations bool `json:"muteFocusedConversations"` NotificationsSoundVolume int64 `json:"notificationsSoundVolume"` }
type Room ¶
type Room struct { ID string `json:"_id"` Name string `json:"name,omitempty"` Type string `json:"t"` UpdatedAt time.Time `json:"_updatedAt"` Default *bool `json:"default,omitempty"` Fname *string `json:"fname,omitempty"` User *RoomUser `json:"u,omitempty"` CustomFields map[string]interface{} `json:"customFields,omitempty"` Ro *bool `json:"ro,omitempty"` }
type Settings ¶
type Settings struct {
Preferences Preferences `json:"preferences"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.