server

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Overview

Package server is a sunshine 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 ListDbDrivers

func ListDbDrivers(c *gin.Context)

ListDbDrivers list db drivers

func ListTables

func ListTables(c *gin.Context)

ListTables list tables

func NewRouter

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

NewRouter create a router

func RunHTTPServer

func RunHTTPServer(sunshineAddr 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