Documentation ¶
Index ¶
- func ConfigureLogging() *logrus.Logger
- func Dump(node *blackfriday.Node, entering bool) blackfriday.WalkStatus
- func GetObjectives(w http.ResponseWriter, r *http.Request)
- func JSONResponse(w http.ResponseWriter, r *http.Request, object interface{}, err error)
- func JSONResponseWithStatus(w http.ResponseWriter, r *http.Request, object interface{}, err error, ...)
- func LoadObjectives() (err error)
- func NewRouter() *mux.Router
- func PostKeyResult(w http.ResponseWriter, r *http.Request)
- func ResultMinusOne(w http.ResponseWriter, r *http.Request)
- func ResultPlusOne(w http.ResponseWriter, r *http.Request)
- func SaveObjectives() (err error)
- func WriteMarkdown(file string, objectives []*Objective) error
- type KeyResult
- type Objective
- type ObjectiveWalker
- type Objectives
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogging ¶
func Dump ¶
func Dump(node *blackfriday.Node, entering bool) blackfriday.WalkStatus
func GetObjectives ¶
func GetObjectives(w http.ResponseWriter, r *http.Request)
func JSONResponse ¶ added in v0.5.0
func JSONResponse(w http.ResponseWriter, r *http.Request, object interface{}, err error)
JSONResponse returns a JSON encoded object with http.StatusOK, if error is nil. Otherwise the error is returned and status code is set to http.StatusInternalServerError
func JSONResponseWithStatus ¶ added in v0.5.0
func JSONResponseWithStatus(w http.ResponseWriter, r *http.Request, object interface{}, err error, statusCode int)
JSONResponseWithStatus returns a JSON encoded object with statusCode, if error is nil. Otherwise the error is returned and status code is set to http.StatusInternalServerError
func LoadObjectives ¶
func LoadObjectives() (err error)
func PostKeyResult ¶ added in v0.2.0
func PostKeyResult(w http.ResponseWriter, r *http.Request)
func ResultMinusOne ¶
func ResultMinusOne(w http.ResponseWriter, r *http.Request)
func ResultPlusOne ¶
func ResultPlusOne(w http.ResponseWriter, r *http.Request)
@todo Combine ResultPlusOne and ResultMinusOne functions
func SaveObjectives ¶
func SaveObjectives() (err error)
func WriteMarkdown ¶
Types ¶
type Objective ¶
type Objective struct { Name string `json:"name"` Description string `json:"description"` KeyResults []*KeyResult `json:"keyResults"` }
func ParseHeading ¶
func ParseHeading(node *blackfriday.Node) (*Objective, error)
func ParseMarkdown ¶
func (*Objective) FindKeyResult ¶
type ObjectiveWalker ¶
type ObjectiveWalker struct {
// contains filtered or unexported fields
}
func (ObjectiveWalker) Result ¶
func (o ObjectiveWalker) Result() ([]*Objective, error)
func (*ObjectiveWalker) Walk ¶
func (o *ObjectiveWalker) Walk(node *blackfriday.Node, entering bool) blackfriday.WalkStatus
type Objectives ¶
type Objectives []*Objective
func (Objectives) FindObjective ¶
func (o Objectives) FindObjective(objectiveID int) *Objective
Click to show internal directories.
Click to hide internal directories.