Documentation ¶
Index ¶
Constants ¶
View Source
const TimeToJustUpdateMessage = time.Minute * 1
TimeToJustUpdateMessage used when received to fade the message and just update the message with just posted card
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatBoardFilterSettings ¶
type ChatBoardFilterSettings struct { CardCreated bool CardCommented bool CardMoved bool PersonAssigned bool Labeled bool Voted bool Archived bool Checklisted bool Due bool }
ChatBoardFilterSettings customize which events will produce messages
type ChatBoardSetting ¶
type ChatBoardSetting struct { Name string // Board name Enabled bool // Enable notifications on that board Filter ChatBoardFilterSettings OAuthToken string // backward compatibility for some of migrated from v1 users TrelloWebhookID string // backward compatibility for some of migrated from v1 users User int64 // ID of User who integrate this board into this Chat }
ChatBoardSetting contains Trello board settings
type ChatSettings ¶
type ChatSettings struct {
Boards map[string]ChatBoardSetting
}
ChatSettings contains filters information
type TimeOrNil ¶
TimeOrNil custom time to workaround 'null'/non-set time in JSON
func (*TimeOrNil) UnmarshalJSON ¶
UnmarshalJSON checks field for 'null' string first
type UserBoardSetting ¶
type UserBoardSetting struct { Name string // Board name TrelloWebhookID string // Trello Webhook id OAuthToken string // To avoid stuck webhook when OAUthToken was changed. Because Webhook relates to token, not to App }
UserBoardSetting contains Trello board settings
type UserSettings ¶
type UserSettings struct { //Boards settings by ID Boards map[string]UserBoardSetting // Chat from which integration request is received TargetChat *integram.Chat }
UserSettings contains boards data and target chats to deliver notifications
Click to show internal directories.
Click to hide internal directories.