Documentation ¶
Index ¶
- Variables
- type Channel
- type Channels
- type IM
- type IMs
- type Message
- type Messages
- func (ms *Messages) Add(msg *slackApi.Msg)
- func (ms *Messages) GetAll(channelID string) string
- func (ms *Messages) GetAllWithHistory(channelType string, channelID string, timestamp string) string
- func (ms *Messages) GetLatest(channelID string) Message
- func (ms *Messages) MarkSent(ID int)
- func (ms *Messages) SendMessage(channelID string, text string)
- type Model
- type Purpose
- type Topic
- type User
- type UserProfile
- type Users
Constants ¶
This section is empty.
Variables ¶
View Source
var API *slackApi.Client
API exports API of slack package
View Source
var Slack = Model{}
Functions ¶
This section is empty.
Types ¶
type Channels ¶
type Channels struct { Len int // contains filtered or unexported fields }
func (*Channels) AddChannels ¶
func (*Channels) GetChannels ¶
type IM ¶
type IM struct { IsIM bool `json:"isIm"` User string `json:"user"` IsUserDeleted bool `json:"isUserDeleted"` }
IM describes an instantMessageChannel
type IMs ¶
type IMs struct { Len int // contains filtered or unexported fields }
IMs is a list of IM
func (*IMs) GetChannel ¶
GetChannel returns a channel informations of an IM
type Messages ¶
type Messages struct { Len int // contains filtered or unexported fields }
func (*Messages) GetAllWithHistory ¶
func (*Messages) SendMessage ¶
type Model ¶
SlackModel represents the entity models for storing information by @API
type User ¶
type User struct { Profile UserProfile `json:"profile"` ID string `json:"id"` Name string `json:"name"` Deleted bool `json:"deleted"` Color string `json:"color"` RealName string `json:"realName"` TZ string `json:"tz"` TZLabel string `json:"tzLabel"` TZOffset int `json:"tzOffset"` IsBot bool `json:"isBot"` IsAdmin bool `json:"isAdmin"` IsOwner bool `json:"isOwner"` IsPrimaryOwner bool `json:"isPrimaryOwner"` IsRestricted bool `json:"isRestricted"` IsUltraRestricted bool `json:"isUltraRestricted"` Has2FA bool `json:"has2FA"` HasFiles bool `json:"hasFiles"` Presence string `json:"presence"` }
User is a Slack user accounts
type UserProfile ¶
type UserProfile struct { FirstName string `json:"firstName"` LastName string `json:"lastName"` RealName string `json:"realName"` RealNameNormalized string `json:"realNameNormalized"` Email string `json:"email"` Skype string `json:"skype"` Phone string `json:"phone"` Image24 string `json:"image24"` Image32 string `json:"image32"` Image48 string `json:"image48"` Image72 string `json:"image72"` Image192 string `json:"image192"` ImageOriginal string `json:"imageOriginal"` Title string `json:"title"` BotID string `json:"botId,omitempty"` APIAppID string `json:"apiAppId,omitempty"` }
UserProfile holds the personal information of a @User
Click to show internal directories.
Click to hide internal directories.