server

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: MIT Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressPathToZip

func CompressPathToZip(path, 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