server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package server is a sponge UI service that contains the front-end pages.

Index

Constants

This section is empty.

Variables

View Source
var ConfigJsFile = "static/appConfig.js"

Functions

func CompressPathToZip

func CompressPathToZip(outPath, targetFile string) error

CompressPathToZip compressed directory to zip file

func GenerateCode

func GenerateCode(c *gin.Context)

GenerateCode generate code

func GetRecord

func GetRecord(c *gin.Context)

GetRecord generate run command record

func ListTables

func ListTables(c *gin.Context)

ListTables list tables

func NewRouter

func NewRouter(spongeAddr string, isLog bool) *gin.Engine

NewRouter create a router

func RunHTTPServer

func RunHTTPServer(spongeAddr string, port int, isLog bool)

RunHTTPServer run http server

func UploadFiles

func UploadFiles(c *gin.Context)

UploadFiles batch files upload

Types

type GenerateCodeForm

type GenerateCodeForm struct {
	Arg  string `json:"arg" binding:"required"`
	Path string `json:"path" binding:"required"`
}

GenerateCodeForm generate code form

Jump to

Keyboard shortcuts

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