trello

package
v0.0.0-...-ee4bfb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2017 License: GPL-3.0 Imports: 25 Imported by: 0

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 Config

type Config struct {
	integram.OAuthProvider
}

Config contains OAuthProvider

func (Config) Service

func (cfg Config) Service() *integram.Service

Service returns *integram.Service from trello.Config

type TimeOrNil

type TimeOrNil struct {
	*time.Time
}

TimeOrNil custom time to workaround 'null'/non-set time in JSON

func (*TimeOrNil) UnmarshalJSON

func (t *TimeOrNil) UnmarshalJSON(data []byte) (err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL