Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlackChannel ¶
type SlackChannel struct {
common.NoPKModel `json:"-"`
ConnectionId uint64 `gorm:"primaryKey"`
Id string `json:"id" gorm:"primaryKey"`
Name string `json:"name"`
IsChannel bool `json:"is_channel"`
IsGroup bool `json:"is_group"`
IsIm bool `json:"is_im"`
IsMpim bool `json:"is_mpim"`
IsPrivate bool `json:"is_private"`
Created int `json:"created"`
IsArchived bool `json:"is_archived"`
IsGeneral bool `json:"is_general"`
Unlinked int `json:"unlinked"`
NameNormalized string `json:"name_normalized"`
ContextTeamId string `json:"context_team_id"`
Updated int64 `json:"updated"`
Creator string `json:"creator"`
IsMember bool `json:"is_member"`
NumMembers int `json:"num_members"`
}
func (SlackChannel) TableName ¶
func (SlackChannel) TableName() string
type SlackChannelMessage ¶
type SlackChannelMessage struct {
common.NoPKModel `json:"-"`
ConnectionId uint64 `gorm:"primaryKey"`
ChannelId string `json:"channel_id" gorm:"primaryKey"`
Ts string `json:"ts" gorm:"primaryKey"`
ClientMsgId string `json:"client_msg_id"`
Type string `json:"type"`
Subtype string `json:"subtype"`
ThreadTs string `json:"thread_ts"`
User string `json:"user"`
Text string `json:"text"`
Team string `json:"team"`
ReplyCount int `json:"reply_count"`
ReplyUsersCount int `json:"reply_users_count"`
LatestReply string `json:"latest_reply"`
IsLocked bool `json:"is_locked"`
Subscribed bool `json:"subscribed"`
ParentUserId string `json:"parent_user_id"`
}
func (SlackChannelMessage) TableName ¶
func (SlackChannelMessage) TableName() string
type SlackConn ¶
type SlackConn struct {
helper.RestConnection `mapstructure:",squash"`
helper.AccessToken `mapstructure:",squash"`
}
SlackConn holds the essential information to connect to the Slack API
type SlackConnection ¶
type SlackConnection struct {
helper.BaseConnection `mapstructure:",squash"`
SlackConn `mapstructure:",squash"`
}
SlackConnection holds SlackConn plus ID/Name for database storage
func (*SlackConnection) MergeFromRequest ¶
func (connection *SlackConnection) MergeFromRequest(target *SlackConnection, body map[string]interface{}) error
func (SlackConnection) Sanitize ¶
func (connection SlackConnection) Sanitize() SlackConnection
func (SlackConnection) TableName ¶
func (SlackConnection) TableName() string
Click to show internal directories.
Click to hide internal directories.