Documentation ¶
Index ¶
- type Board
- type DefaultSprintsRepo
- func (sr DefaultSprintsRepo) Create(sprint Sprint) (Sprint, error)
- func (sr DefaultSprintsRepo) Delete(id string) error
- func (sr DefaultSprintsRepo) FindAll() ([]Sprint, error)
- func (sr DefaultSprintsRepo) FindByID(id string) (Sprint, error)
- func (sr DefaultSprintsRepo) Update(id string, sprint Sprint) (Sprint, error)
- type Event
- type PlannedDay
- type Sprint
- type SprintsRepo
- type Stream
- type Task
- type UserStory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Board ¶
type Board struct { ID string `json:"id"` LaneName string `json:"laneName"` Type string `json:"type"` }
Board is a board with cards UserStories or DevelopmentTasks
type DefaultSprintsRepo ¶
type DefaultSprintsRepo struct {
// contains filtered or unexported fields
}
DefaultSprintsRepo is the repository for sprints
func (DefaultSprintsRepo) Create ¶
func (sr DefaultSprintsRepo) Create(sprint Sprint) (Sprint, error)
Create a sprint
func (DefaultSprintsRepo) Delete ¶
func (sr DefaultSprintsRepo) Delete(id string) error
Delete a sprint
func (DefaultSprintsRepo) FindAll ¶
func (sr DefaultSprintsRepo) FindAll() ([]Sprint, error)
FindAll get all sprints
type Event ¶
type Event struct { EventDate time.Time `json:"eventDate" bson:"eventDate"` Name string `json:"name" bson:"name"` Duration float32 `json:"duration" bson:"duration"` }
Event define an event
type PlannedDay ¶
type PlannedDay struct { Day time.Time `json:"day" bson:"day"` DayCapacity float32 `json:"dayCapacity" bson:"dayCapacity"` TheoricalPointToDo float32 `json:"theoricalPointToDo" bson:"theoricalPointToDo"` }
PlannedDay define a planned day
type Sprint ¶
type Sprint struct { ID bson.ObjectId `json:"id" bson:"_id"` Created time.Time `json:"created" bson:"created"` Name string `json:"name" bson:"name"` StartDate time.Time `json:"startDate" bson:"startDate"` EndDate time.Time `json:"endDate" bson:"endDate"` Stream Stream `json:"stream" bson:"stream"` Capacity float32 `json:"capacity" bson:"capacity"` Velocity float32 `json:"velocity" bson:"velocity"` Planning []PlannedDay `json:"planning" bson:"planning"` Events []Event `json:"events" bson:"events"` UserStories []UserStory `json:"userStories"` }
Sprint define an iteration of development
type SprintsRepo ¶
type SprintsRepo interface { // Create a sprint Create(sprint Sprint) (Sprint, error) // FindByID the sprint by Id FindByID(id string) (Sprint, error) // FindAll get all sprints FindAll() ([]Sprint, error) // Update a sprint Update(id string, sprint Sprint) (Sprint, error) // Delete a sprint Delete(id string) error }
SprintsRepo is the a repo for sprints
func NewSprintsRepo ¶
func NewSprintsRepo(coll *mgo.Collection) SprintsRepo
NewSprintsRepo instantiate new SprintsRepo
type Stream ¶
type Stream struct { StreamName string `json:"name" bson:"name"` Boards []Board `json:"boards" bson:"boards"` }
Stream define a team board
type Task ¶
type Task struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` TotalDaysToDevelop float64 `json:"totalDaysToDevelop"` LeftDaysToDevelop float64 `json:"leftDaysToDevelop"` }
Task is a part of a feature to develop in a sprint
type UserStory ¶
type UserStory struct { ID string `json:"id"` Name string `json:"name"` Complexity int `json:"complexity"` TotalDaysToDevelop float64 `json:"totalDaysToDevelop"` LeftDaysToDevelop float64 `json:"leftDaysToDevelop"` State string `json:"state"` Tasks []Task `json:"tasks"` }
UserStory is feature to develop in a sprint
Click to show internal directories.
Click to hide internal directories.