Documentation ¶
Index ¶
- type DB
- func (m *DB) CreateNotificationThread(s model.NotificationThread) (model.NotificationThread, error)
- func (m *DB) CreateProject(ch model.Project) (model.Project, error)
- func (m *DB) CreateStandup(s model.Standup) (model.Standup, error)
- func (m *DB) CreateStanduper(s model.Standuper) (model.Standuper, error)
- func (m *DB) CreateWorkspace(bs model.Workspace) (model.Workspace, error)
- func (m *DB) DeleteNotificationThread(id int64) error
- func (m *DB) DeleteProject(id int64) error
- func (m *DB) DeleteStandup(id int64) error
- func (m *DB) DeleteStanduper(id int64) error
- func (m *DB) DeleteWorkspace(teamID string) error
- func (m *DB) DeleteWorkspaceByID(id int64) error
- func (m *DB) FindStansuperByUserID(userID, channelID string) (model.Standuper, error)
- func (m *DB) FindStansupersByUserID(userID string) ([]model.Standuper, error)
- func (m *DB) GetAllWorkspaces() ([]model.Workspace, error)
- func (m *DB) GetProject(id int64) (model.Project, error)
- func (m *DB) GetStandup(id int64) (model.Standup, error)
- func (m *DB) GetStandupForPeriod(userID, channelID string, timeFrom, timeTo int64) (*model.Standup, error)
- func (m *DB) GetStanduper(id int64) (model.Standuper, error)
- func (m *DB) GetWorkspace(id int64) (model.Workspace, error)
- func (m *DB) GetWorkspaceByBotAccessToken(botAccessToken string) (model.Workspace, error)
- func (m *DB) GetWorkspaceByWorkspaceID(workspaceID string) (model.Workspace, error)
- func (m *DB) ListProjectStandupers(channelID string) ([]model.Standuper, error)
- func (m *DB) ListProjects() ([]model.Project, error)
- func (m *DB) ListStandupers() ([]model.Standuper, error)
- func (m *DB) ListStandupersByWorkspaceID(wsID string) ([]model.Standuper, error)
- func (m *DB) ListStandups() ([]model.Standup, error)
- func (m *DB) ListTeamStandups(teamID string) ([]model.Standup, error)
- func (m *DB) ListWorkspaceProjects(ws string) ([]model.Project, error)
- func (m *DB) ListWorkspaceStandupers(workspaceID string) ([]model.Standuper, error)
- func (m *DB) SelectLatestStandupByUser(userID, channelID string) (model.Standup, error)
- func (m *DB) SelectNotificationsThread(channelID string) (model.NotificationThread, error)
- func (m *DB) SelectProject(channelID string) (model.Project, error)
- func (m *DB) SelectStandupByMessageTS(messageTS string) (model.Standup, error)
- func (m *DB) UpdateNotificationThread(id int64, notificationTime int64, nonReporters string) error
- func (m *DB) UpdateProject(ch model.Project) (model.Project, error)
- func (m *DB) UpdateStandup(s model.Standup) (model.Standup, error)
- func (m *DB) UpdateStanduper(st model.Standuper) (model.Standuper, error)
- func (m *DB) UpdateWorkspace(settings model.Workspace) (model.Workspace, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB provides api for work with DB database
func (*DB) CreateNotificationThread ¶
func (m *DB) CreateNotificationThread(s model.NotificationThread) (model.NotificationThread, error)
CreateNotificationThread create notifications
func (*DB) CreateProject ¶
CreateProject creates standup entry in database
func (*DB) CreateStandup ¶
CreateStandup creates standup entry in database
func (*DB) CreateStanduper ¶
CreateStanduper creates comedian entry in database
func (*DB) CreateWorkspace ¶
CreateWorkspace creates bot properties for the newly created bot
func (*DB) DeleteNotificationThread ¶
DeleteNotificationThread deletes notification entry from database
func (*DB) DeleteProject ¶
DeleteProject deletes Project entry from database
func (*DB) DeleteStandup ¶
DeleteStandup deletes standup entry from database
func (*DB) DeleteStanduper ¶
DeleteStanduper deletes standupers entry from database
func (*DB) DeleteWorkspace ¶
DeleteWorkspace deletes bot
func (*DB) DeleteWorkspaceByID ¶
DeleteWorkspaceByID deletes bot
func (*DB) FindStansuperByUserID ¶
FindStansuperByUserID finds user in channel
func (*DB) FindStansupersByUserID ¶
FindStansupersByUserID finds user in channel
func (*DB) GetAllWorkspaces ¶
GetAllWorkspaces returns all workspaces stored in DB
func (*DB) GetProject ¶
GetProject selects Project entry from database with specific id
func (*DB) GetStandup ¶
GetStandup returns standup by its ID
func (*DB) GetStandupForPeriod ¶
func (m *DB) GetStandupForPeriod(userID, channelID string, timeFrom, timeTo int64) (*model.Standup, error)
GetStandupForPeriod selects standup entry from database filtered by user
func (*DB) GetStanduper ¶
GetStanduper returns a standuper
func (*DB) GetWorkspace ¶
GetWorkspace returns a particular bot
func (*DB) GetWorkspaceByBotAccessToken ¶
GetWorkspaceByBotAccessToken returns a particular bot
func (*DB) GetWorkspaceByWorkspaceID ¶
GetWorkspaceByWorkspaceID returns a particular bot
func (*DB) ListProjectStandupers ¶
ListProjectStandupers returns array of standup entries from database
func (*DB) ListProjects ¶
ListProjects returns list of projects
func (*DB) ListStandupers ¶
ListStandupers returns array of standup entries from database
func (*DB) ListStandupersByWorkspaceID ¶
ListStandupersByWorkspaceID returns array of standupers which belongs to one team
func (*DB) ListStandups ¶
ListStandups returns array of standup entries from database
func (*DB) ListTeamStandups ¶
ListTeamStandups returns array of standup entries from database
func (*DB) ListWorkspaceProjects ¶
ListWorkspaceProjects returns list of projects
func (*DB) ListWorkspaceStandupers ¶
ListWorkspaceStandupers returns array of standup entries from database
func (*DB) SelectLatestStandupByUser ¶
SelectLatestStandupByUser selects standup entry from database filtered by user
func (*DB) SelectNotificationsThread ¶
func (m *DB) SelectNotificationsThread(channelID string) (model.NotificationThread, error)
SelectNotificationsThread returns array of notifications entries from database
func (*DB) SelectProject ¶
SelectProject selects Project entry from database
func (*DB) SelectStandupByMessageTS ¶
SelectStandupByMessageTS selects standup entry from database filtered by MessageTS parameter
func (*DB) UpdateNotificationThread ¶
UpdateNotificationThread update field reminder counter
func (*DB) UpdateProject ¶
UpdateProject updates Project entry in database
func (*DB) UpdateStandup ¶
UpdateStandup updates standup entry in database
func (*DB) UpdateStanduper ¶
UpdateStanduper updates Standuper entry in database