Documentation ¶
Index ¶
- Variables
- func CheckErr(err error, msg string, c *gin.Context)
- func InitMongo() (*mgo.Database, error)
- func Run(cfg common.Config) error
- type DoWorkResource
- func (dw *DoWorkResource) AddMembers(c *gin.Context)
- func (dw *DoWorkResource) CreateKeyResult(c *gin.Context)
- func (dw *DoWorkResource) CreateObjective(c *gin.Context)
- func (dw *DoWorkResource) CreateOrg(c *gin.Context)
- func (dw *DoWorkResource) CreateTask(c *gin.Context)
- func (dw *DoWorkResource) CreateTree(c *gin.Context)
- func (dw *DoWorkResource) DeleteMembers(c *gin.Context)
- func (dw *DoWorkResource) GetAllOrgs(c *gin.Context)
- func (dw *DoWorkResource) GetAllTrees(c *gin.Context)
- func (dw *DoWorkResource) GetAllUsers(c *gin.Context)
- func (dw *DoWorkResource) GetMembers(c *gin.Context)
- func (dw *DoWorkResource) GetOneUser(c *gin.Context)
- func (dw *DoWorkResource) GetTree(c *gin.Context)
- func (dw *DoWorkResource) Register(c *gin.Context)
- func (dw *DoWorkResource) UpdateKrProperties(c *gin.Context)
- func (dw *DoWorkResource) UpdateMission(c *gin.Context)
- func (dw *DoWorkResource) UpdateObjProperties(c *gin.Context)
- func (dw *DoWorkResource) UpdateOrgName(c *gin.Context)
- func (dw *DoWorkResource) UpdateTaskProperties(c *gin.Context)
- func (dw *DoWorkResource) UpdateTreeName(c *gin.Context)
- type ErrorMsg
- type SuccessMsg
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = []cli.Command{ { Name: "server", Usage: "Run the http server", Action: func(c *cli.Context) { cfg, err := getConfig(c) if err != nil { log.Fatal(err) return } fmt.Println("\x1b[32;1mYou've started the server. Rejoice!\x1b[0m") if err = Run(cfg); err != nil { log.Fatal(err) } }, }, }
Functions ¶
Types ¶
type DoWorkResource ¶
type DoWorkResource struct {
// contains filtered or unexported fields
}
func (*DoWorkResource) AddMembers ¶
func (dw *DoWorkResource) AddMembers(c *gin.Context)
func (*DoWorkResource) CreateKeyResult ¶
func (dw *DoWorkResource) CreateKeyResult(c *gin.Context)
func (*DoWorkResource) CreateObjective ¶
func (dw *DoWorkResource) CreateObjective(c *gin.Context)
func (*DoWorkResource) CreateOrg ¶
func (dw *DoWorkResource) CreateOrg(c *gin.Context)
func (*DoWorkResource) CreateTask ¶
func (dw *DoWorkResource) CreateTask(c *gin.Context)
func (*DoWorkResource) CreateTree ¶
func (dw *DoWorkResource) CreateTree(c *gin.Context)
func (*DoWorkResource) DeleteMembers ¶
func (dw *DoWorkResource) DeleteMembers(c *gin.Context)
func (*DoWorkResource) GetAllOrgs ¶
func (dw *DoWorkResource) GetAllOrgs(c *gin.Context)
func (*DoWorkResource) GetAllTrees ¶
func (dw *DoWorkResource) GetAllTrees(c *gin.Context)
func (*DoWorkResource) GetAllUsers ¶
func (dw *DoWorkResource) GetAllUsers(c *gin.Context)
func (*DoWorkResource) GetMembers ¶
func (dw *DoWorkResource) GetMembers(c *gin.Context)
func (*DoWorkResource) GetOneUser ¶
func (dw *DoWorkResource) GetOneUser(c *gin.Context)
func (*DoWorkResource) GetTree ¶
func (dw *DoWorkResource) GetTree(c *gin.Context)
func (*DoWorkResource) Register ¶
func (dw *DoWorkResource) Register(c *gin.Context)
func (*DoWorkResource) UpdateKrProperties ¶
func (dw *DoWorkResource) UpdateKrProperties(c *gin.Context)
func (*DoWorkResource) UpdateMission ¶
func (dw *DoWorkResource) UpdateMission(c *gin.Context)
func (*DoWorkResource) UpdateObjProperties ¶
func (dw *DoWorkResource) UpdateObjProperties(c *gin.Context)
func (*DoWorkResource) UpdateOrgName ¶
func (dw *DoWorkResource) UpdateOrgName(c *gin.Context)
func (*DoWorkResource) UpdateTaskProperties ¶
func (dw *DoWorkResource) UpdateTaskProperties(c *gin.Context)
func (*DoWorkResource) UpdateTreeName ¶
func (dw *DoWorkResource) UpdateTreeName(c *gin.Context)
type SuccessMsg ¶
type SuccessMsg struct {
Success interface{} "json:'Success'"
}
Source Files ¶
- helper.go
- init.go
- keyResult_add.go
- keyResult_update_props.go
- members_add.go
- members_delete.go
- mission_update.go
- objective_create.go
- objective_update_props.go
- org_create.go
- org_get_all.go
- org_get_members.go
- org_update_name.go
- task_add.go
- task_update_props.go
- tree_create.go
- tree_get_all.go
- tree_get_one.go
- tree_update_name.go
- user_get_one.go
- user_register.go
- users_get_all.go
Click to show internal directories.
Click to hide internal directories.