Documentation ¶
Index ¶
- func RegisterService(name string, service Servicer)
- func SoundClass(category string) string
- type Campfire
- type CampfireConfig
- type CampfireMessage
- type CaseHistory
- type Desk
- type DeskConfig
- type DeskEntry
- type DeskFeed
- type DeskLink
- type DeskUser
- type Github
- type GithubConfig
- type GithubEntry
- type GithubFeed
- type HammerTime
- type HistoryEntry
- type Jira
- type JiraConfig
- type JiraEntry
- type JiraFeed
- type Room
- type RoomResponse
- type Servicer
- type UserResponse
- type Yammer
- type YammerConfig
- type YammerFeed
- type YammerMessage
- type YammerReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterService ¶
func SoundClass ¶
Types ¶
type Campfire ¶
type CampfireConfig ¶
type CampfireMessage ¶
type CaseHistory ¶
type CaseHistory struct { Total_Entries int Embedded struct { Entries []HistoryEntry } `json:"_embedded"` Links map[string]DeskLink `json:"_links"` }
type Desk ¶
type Desk struct { Url string Username string Password string Choir *choir.Choir LastUpdate time.Time Users map[int]string }
func (*Desk) FetchUpdates ¶
#################################### API IMPLEMENTATION ####################################
type DeskConfig ¶
type DeskEntry ¶
type DeskEntry struct { Subject string Status string Created_At time.Time Updated_At time.Time Links map[string]DeskLink `json:"_links"` }
func (*DeskEntry) BuildDescription ¶
TODO: Build a map of: User -> unique actions Actions to verbs Figure out a way to: Build a sentence from above map If there is no user, do we just say "The case was reopened"?
func (*DeskEntry) GetHistory ¶
func (de *DeskEntry) GetHistory(d *Desk) *CaseHistory
type Github ¶
func (*Github) FetchUpdates ¶
func (g *Github) FetchUpdates() (feed GithubFeed)
type GithubConfig ¶
type GithubEntry ¶
type GithubEntry struct { Published time.Time `xml:"published"` Id string `xml:"id"` AuthorName string `xml:"author>name"` Title string `xml:"title"` Content string `xml:"content"` }
func (*GithubEntry) GetCategory ¶
func (je *GithubEntry) GetCategory() string
func (*GithubEntry) SoundClass ¶
func (ge *GithubEntry) SoundClass() string
type GithubFeed ¶
type GithubFeed struct { XMLName xml.Name `xml:"feed"` Updated string `xml:"updated"` Entry []GithubEntry `xml:"entry"` }
XML Activity Feed
type HammerTime ¶
func (*HammerTime) UnmarshalJSON ¶
func (t *HammerTime) UnmarshalJSON(data []byte) error
type HistoryEntry ¶
type HistoryEntry struct { Type string Created_At time.Time Links map[string]DeskLink `json:"_links"` }
func (*HistoryEntry) GetUserName ¶
func (he *HistoryEntry) GetUserName(d *Desk) (name string)
func (*HistoryEntry) UserId ¶
func (he *HistoryEntry) UserId() (user_id int)
type Jira ¶
type Jira struct { Url string Username string Password string Choir *choir.Choir LastUpdate time.Time }
func (*Jira) FetchUpdates ¶
type JiraConfig ¶
type JiraFeed ¶
type JiraFeed struct { XMLName xml.Name `xml:"feed"` Updated string `xml:"updated"` TimezoneOffset string `xml:"timezone-offset"` Entry []JiraEntry `xml:"entry"` }
XML Activity Feed
type RoomResponse ¶
type RoomResponse struct {
Room Room
}
type Servicer ¶
func FindService ¶
type UserResponse ¶
type UserResponse struct { User struct { Name string } }
type Yammer ¶
func (*Yammer) FetchUpdates ¶
func (y *Yammer) FetchUpdates() (feed YammerFeed)
type YammerConfig ¶
type YammerFeed ¶
type YammerFeed struct { Messages []YammerMessage References []YammerReference }
func (*YammerFeed) LookupUser ¶
func (yf *YammerFeed) LookupUser(user_id int) (full_name string)
type YammerMessage ¶
type YammerMessage struct { Id int Created_at HammerTime Replied_To_Id int Content_Excerpt string Body struct { Rich string Plain string } Sender_Id int }
func (*YammerMessage) GetCategory ¶
func (ym *YammerMessage) GetCategory() string
func (*YammerMessage) GetText ¶
func (ym *YammerMessage) GetText() string
func (*YammerMessage) SoundClass ¶
func (ym *YammerMessage) SoundClass() string
type YammerReference ¶
Click to show internal directories.
Click to hide internal directories.