controllers

package
v0.0.0-...-cc73b8b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChart

func CreateChart(c echo.Context) error

CreateChart will persist a new chart with a root node [PUT, POST] /chart/:chartId

func DeleteChart

func DeleteChart(c echo.Context) error

DeleteChart will remove a chart from persistency [DELETE] /chart/:chartId

func GetChart

func GetChart(c echo.Context) error

GetChart retrieves a chart and returns it in JSON format [GET] /chart/:chartId

func GetSubordinates

func GetSubordinates(c echo.Context) error

GetSubordinates fetches all children nodes of a desired node [GET] /chartId/:chartId/employee/:employeeId/subordinates

func UpsertEmployee

func UpsertEmployee(c echo.Context) error

UpsertEmployee creates or updates an employee information it is also possible to update its current leader by sending a `leader` key [PUT] /chartId/:chartId/employee/:employeeId

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL