Documentation
¶
Index ¶
- Constants
- func InitRouter() *gin.Engine
- func NodeReload(c *gin.Context)
- func SetSecret(s string)
- func StartServer(port int, s string)
- func StopServer()
- func UserAdd(c *gin.Context)
- func UserDel(c *gin.Context)
- func UserEdit(c *gin.Context)
- func UserList(c *gin.Context)
- func UsersAdd(c *gin.Context)
- func UsersDel(c *gin.Context)
Examples ¶
Constants ¶
View Source
const ( START = iota CLOSE = iota )
Variables ¶
This section is empty.
Functions ¶
func InitRouter ¶
func NodeReload ¶
func StartServer ¶
Example ¶
gin.SetMode(gin.ReleaseMode) StartServer(300, "abc") c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGHUP, syscall.SIGQUIT, syscall.SIGTERM, syscall.SIGINT) <-c
Output:
func StopServer ¶
func StopServer()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.