Documentation ¶
Index ¶
Constants ¶
View Source
const ( Success = 200 BadRequest = 400 SystemError = 500 MissingParam = 1001 ParamError = 1002 AirVisualDataLock = "AirVisualDataLock" SockAddr = "/var/run//docker.sock" // docker官方文档定义的套接字默认值 ImagesSock = "GET /images/json HTTP/1.0\r\n\r\n" // docker对外的镜像操作api ContainerSock = "GET /containers/json?all=true HTTP/1.0\r\n\r\n" // docker对外的容器查询api StartContainerSock = "POST /containers/%s/start HTTP/1.0\r\n\r\n" // docker对外的容器启动api )
Variables ¶
View Source
var CodeText = map[int]string{ Success: "Success", BadRequest: "Bad Request", SystemError: "System error", MissingParam: "Missing param", ParamError: "Param error", }
View Source
var DBEngine *xorm.Engine
Functions ¶
func ConfigInit ¶
func ConfigInit()
Types ¶
Click to show internal directories.
Click to hide internal directories.