server

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 33 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 AdaptToWindowsZip added in v1.13.0

func AdaptToWindowsZip(outPath, targetFile string) error

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 GetTemplateInfo

func GetTemplateInfo(c *gin.Context)

GetTemplateInfo get template info

func HandleAssistant added in v1.13.0

func HandleAssistant(c *gin.Context)

HandleAssistant handle assistant generate and merge code

func ListDbDrivers

func ListDbDrivers(c *gin.Context)

ListDbDrivers list db drivers

func ListLLM added in v1.13.0

func ListLLM(c *gin.Context)

ListLLM list llm info

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