server

package
v0.0.0-...-fa03cd3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 28 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

This section is empty.

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(isLog ...bool) *gin.Engine

NewRouter create a router

func RunHTTPServer

func RunHTTPServer(addr string, 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