Documentation ¶
Index ¶
- func CreateProject(p Project) error
- func CreateTimer(user, name string) error
- func CreateUser(u User) error
- func GormConn() (gorm.DB, error)
- func HerokuConnection() string
- func RemoveSetting(user string, name string) (bool, error)
- func SaveUser(u User) error
- func SetSetting(user string, name string, value string) error
- func SetupDB()
- func StartPokerSession(channel, title, users string) error
- func UpdateProject(p Project) error
- func UpdateUser(u User) error
- type PokerSession
- type PokerStory
- type PokerVote
- type Project
- type Setting
- type Timer
- type User
- type Vacation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateProject ¶
func CreateTimer ¶
CreateTimer creates a new running timer
func CreateUser ¶
func HerokuConnection ¶
func HerokuConnection() string
func StartPokerSession ¶
StartPokerSession starts a poker session for a given channel
func UpdateProject ¶
func UpdateUser ¶
Types ¶
type PokerSession ¶
type PokerSession struct { ID int Channel string Title string Users string FinishedAt *time.Time Stories []PokerStory }
PokerSession is session of poker planning
func GetCurrentSession ¶
func GetCurrentSession(channel string) (*PokerSession, error)
GetCurrentSession returns the current session for the given channel or nil if no current session for the channel
func (*PokerSession) GetCurrentStory ¶
func (s *PokerSession) GetCurrentStory() (*PokerStory, error)
GetCurrentStory returns the most recent story with no estimation (or assumed to be in the process of estimation)
func (*PokerSession) GetEstimatedStories ¶
func (s *PokerSession) GetEstimatedStories() ([]PokerStory, error)
GetEstimatedStories returns all the stories for a given PokerSession that has not been estimated yet
func (*PokerSession) GetStories ¶
func (s *PokerSession) GetStories() ([]PokerStory, error)
GetStories returns all stories for a given PokerSession in order of creation date
func (*PokerSession) StartPokerStory ¶
func (s *PokerSession) StartPokerStory(title string) error
StartPokerStory creates a new PokerStory. This story will then be considered the "current" story of a poker planning session
type PokerStory ¶
type PokerStory struct { ID int Session PokerSession SessionID int Title string Estimation *float32 }
PokerStory is a story within a PokerSession
func (*PokerStory) CastVote ¶
func (s *PokerStory) CastVote(user, vote string) error
CastVote tracks a vote for a given user
func (*PokerStory) GetVotes ¶
func (s *PokerStory) GetVotes() ([]PokerVote, error)
GetVotes returns all votes for a given PokerStory
func (*PokerStory) UpdateEstimation ¶
func (s *PokerStory) UpdateEstimation(estimation string) error
UpdateEstimation sets the estimation of a given PokerStory
type PokerVote ¶
type PokerVote struct { ID int Story PokerStory StoryID int User string Vote float32 }
PokerVote is a user's vote for a story
type Project ¶
type Project struct { Id int Name string Channel string PivotalId int64 MavenlinkId int64 MvnSprintStoryId string CreatedBy string }
func GetProject ¶
func GetProjectByChannel ¶
func GetProjectByName ¶
func GetProjects ¶
func (Project) StrPivotalId ¶
type Setting ¶
func GetSettings ¶
type Timer ¶
Timer tracks task timers for users
func GetRunningTimers ¶
func GetStartedTimerByName ¶
func GetTimerByName ¶
func (*Timer) IsFinished ¶
type Vacation ¶
type Vacation struct { ID int User string StartDate *time.Time EndDate *time.Time Description string }