server

package
v0.0.0-...-1db1413 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Examples

Constants

View Source
const (
	START = iota
	CLOSE = iota
)

Variables

This section is empty.

Functions

func InitRouter

func InitRouter() *gin.Engine

func NodeReload

func NodeReload(c *gin.Context)

func SetSecret

func SetSecret(s string)

func StartServer

func StartServer(port int, s string)
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()

func UserAdd

func UserAdd(c *gin.Context)

func UserDel

func UserDel(c *gin.Context)

func UserEdit

func UserEdit(c *gin.Context)

func UserList

func UserList(c *gin.Context)

func UsersAdd

func UsersAdd(c *gin.Context)

func UsersDel

func UsersDel(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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