Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentItem ¶
type AttachmentItem struct { SlackAttachment slack.Attachment Points int }
AttachmentItem is needed to sort attachments
type InfoEvent ¶
type InfoEvent struct { TeamName string `json:"team_name"` InfoType string `json:"info_type"` AccessToken string `json:"bot_access_token"` Channel string `json:"channel"` Message string `json:"message"` }
InfoEvent event coming from services
type NotificationThread ¶
type NotificationThread struct { ID int64 `db:"id" json:"id"` ChannelID string `db:"channel_id" json:"channel_id"` UserIDs string `db:"user_ids" json:"user_ids"` NotificationTime int64 `db:"notification_time" json:"notification_time"` ReminderCounter int `db:"reminder_counter" json:"reminder_counter"` }
NotificationThread ...
func (NotificationThread) Validate ¶
func (nt NotificationThread) Validate() error
Validate validates NotificationsThread struct
type Project ¶
type Project struct { ID int64 `db:"id" json:"id"` CreatedAt int64 `db:"created_at" json:"created_at"` WorkspaceID string `db:"workspace_id" json:"workspace_id"` ChannelName string `db:"channel_name" json:"channel_name"` ChannelID string `db:"channel_id" json:"channel_id"` Deadline string `db:"deadline" json:"deadline"` TZ string `db:"tz" json:"tz"` OnbordingMessage string `db:"onbording_message" json:"onbording_message,omitempty"` SubmissionDays string `db:"submission_days" json:"submission_days,omitempty"` }
Project model used for serialization/deserialization stored Projects
type Report ¶
type Report struct { ReportHead string ReportBody []ReportBodyContent }
Report used to generate report structure
type ReportBodyContent ¶
ReportBodyContent used to generate report body content
type ServiceEvent ¶
type ServiceEvent struct { TeamName string `json:"team_name"` AccessToken string `json:"bot_access_token"` Channel string `json:"channel"` Message string `json:"message"` Attachments []slack.Attachment `json:"attachments,omitempty"` }
ServiceEvent event coming from services
type Standup ¶
type Standup struct { ID int64 `db:"id" json:"id"` CreatedAt int64 `db:"created_at" json:"created_at"` WorkspaceID string `db:"workspace_id" json:"workspace_id"` ChannelID string `db:"channel_id" json:"channel_id"` UserID string `db:"user_id" json:"user_id"` Comment string `db:"comment" json:"comment"` MessageTS string `db:"message_ts" json:"message_ts"` }
Standup model used for serialization/deserialization stored standups
type Standuper ¶
type Standuper struct { ID int64 `db:"id" json:"id"` CreatedAt int64 `db:"created_at" json:"created_at"` WorkspaceID string `db:"workspace_id" json:"workspace_id"` UserID string `db:"user_id" json:"user_id"` ChannelID string `db:"channel_id" json:"channel_id"` Role string `db:"role" json:"role"` RealName string `db:"real_name" json:"real_name"` ChannelName string `db:"channel_name" json:"channel_name"` }
Standuper model used for serialization/deserialization stored ChannelMembers
type Workspace ¶
type Workspace struct { ID int64 `db:"id" json:"id"` CreatedAt int64 `db:"created_at" json:"created_at"` BotUserID string `db:"bot_user_id" json:"bot_user_id"` NotifierInterval int `db:"notifier_interval" json:"notifier_interval" ` Language string `db:"language" json:"language" ` MaxReminders int `db:"max_reminders" json:"max_reminders" ` ReminderOffset int64 `db:"reminder_offset" json:"reminder_offset" ` BotAccessToken string `db:"bot_access_token" json:"bot_access_token" ` WorkspaceID string `db:"workspace_id" json:"workspace_id" ` WorkspaceName string `db:"workspace_name" json:"workspace_name" ` ReportingChannel string `db:"reporting_channel" json:"reporting_channel"` ReportingTime string `db:"reporting_time" json:"reporting_time"` ProjectsReportsEnabled bool `db:"projects_reports_enabled" json:"projects_reports_enabled"` }
Workspace is used for updating and storing different bot configuration parameters
Click to show internal directories.
Click to hide internal directories.