Documentation ¶
Index ¶
- type MySQL
- func (m *MySQL) CreateGroup(group *model.Group) (*model.Group, error)
- func (m *MySQL) CreateNotificationThread(s model.NotificationThread) (model.NotificationThread, error)
- func (m *MySQL) CreateStandup(s *model.Standup) (*model.Standup, error)
- func (m *MySQL) CreateStanduper(s *model.Standuper) (*model.Standuper, error)
- func (m *MySQL) DeleteGroup(id int64) error
- func (m *MySQL) DeleteGroupStandupers(chatID int64) error
- func (m *MySQL) DeleteNotificationThread(id int64) error
- func (m *MySQL) DeleteStandup(id int64) error
- func (m *MySQL) DeleteStanduper(id int64) error
- func (m *MySQL) FindGroup(chatID int64) (*model.Group, error)
- func (m *MySQL) FindStanduper(userID int, chatID int64) (*model.Standuper, error)
- func (m *MySQL) LastStandupFor(username string, chatID int64) (*model.Standup, error)
- func (m *MySQL) ListChatStandupers(chatID int64) ([]model.Standuper, error)
- func (m *MySQL) ListGroups() ([]*model.Group, error)
- func (m *MySQL) ListNotificationsThread(chatID int64) ([]model.NotificationThread, error)
- func (m *MySQL) ListStandups() ([]*model.Standup, error)
- func (m *MySQL) SelectGroup(id int64) (*model.Group, error)
- func (m *MySQL) SelectStandup(id int64) (*model.Standup, error)
- func (m *MySQL) SelectStandupByMessageID(messageID int, chatID int64) (*model.Standup, error)
- func (m *MySQL) UpdateGroup(group *model.Group) (*model.Group, error)
- func (m *MySQL) UpdateNotificationThread(id int64, chatID int64, t time.Time) error
- func (m *MySQL) UpdateStandup(s *model.Standup) (*model.Standup, error)
- func (m *MySQL) UpdateStanduper(s *model.Standuper) (*model.Standuper, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
MySQL provides api for work with mysql database
func (*MySQL) CreateGroup ¶
CreateGroup creates Group
func (*MySQL) CreateNotificationThread ¶
func (m *MySQL) CreateNotificationThread(s model.NotificationThread) (model.NotificationThread, error)
CreateNotificationThread create notifications
func (*MySQL) CreateStandup ¶
CreateStandup creates standup entry in database
func (*MySQL) CreateStanduper ¶
CreateStanduper creates Standuper
func (*MySQL) DeleteGroup ¶
DeleteGroup deletes Group entry from database
func (*MySQL) DeleteGroupStandupers ¶
DeleteGroupStandupers deletes Standuper entry from database
func (*MySQL) DeleteNotificationThread ¶
DeleteNotificationThread deletes notification entry from database
func (*MySQL) DeleteStandup ¶
DeleteStandup deletes standup entry from database
func (*MySQL) DeleteStanduper ¶
DeleteStanduper deletes Standuper entry from database
func (*MySQL) FindStanduper ¶
FindStanduper selects Standuper entry from database
func (*MySQL) LastStandupFor ¶
LastStandupFor returns last standup for Standuper
func (*MySQL) ListChatStandupers ¶
ListChatStandupers returns array of Standuper entries from database filtered by chat
func (*MySQL) ListGroups ¶
ListGroups returns array of Group entries from database filtered by chat
func (*MySQL) ListNotificationsThread ¶
func (m *MySQL) ListNotificationsThread(chatID int64) ([]model.NotificationThread, error)
ListNotificationsThread returns array of notifications entries from database
func (*MySQL) ListStandups ¶
ListStandups returns array of standup entries from database
func (*MySQL) SelectGroup ¶
SelectGroup selects Group entry from database
func (*MySQL) SelectStandup ¶
SelectStandup selects standup entry from database
func (*MySQL) SelectStandupByMessageID ¶
SelectStandupByMessageID selects standup entry from database
func (*MySQL) UpdateGroup ¶
UpdateGroup updates Group entry in database
func (*MySQL) UpdateNotificationThread ¶
UpdateNotificationThread update field reminder counter
func (*MySQL) UpdateStandup ¶
UpdateStandup updates standup entry in database