Documentation ¶
Overview ¶
Package server is a sunshine UI service that contains the front-end pages.
Index ¶
- Variables
- func CompressPathToZip(outPath, targetFile string) error
- func GenerateCode(c *gin.Context)
- func GetRecord(c *gin.Context)
- func ListDbDrivers(c *gin.Context)
- func ListTables(c *gin.Context)
- func NewRouter(sunshineAddr string, isLog bool) *gin.Engine
- func RunHTTPServer(sunshineAddr string, port int, isLog bool)
- func UploadFiles(c *gin.Context)
- type GenerateCodeForm
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigJsFile = "static/appConfig.js"
Functions ¶
func CompressPathToZip ¶
CompressPathToZip compressed directory to zip file
func RunHTTPServer ¶
RunHTTPServer run http server
Types ¶
type GenerateCodeForm ¶
type GenerateCodeForm struct { Arg string `json:"arg" binding:"required"` Path string `json:"path" binding:"required"` }
GenerateCodeForm generate code form
Click to show internal directories.
Click to hide internal directories.