model

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetComModel = (func() func() *ComModel {
	var instance *ComModel

	return func() *ComModel {
		if instance == nil {
			instance = new(ComModel)
		}
		return instance
	}
})()

Functions

This section is empty.

Types

type CmdMd

type CmdMd struct {
	Path    string   `json:"path"`
	Rewrite string   `json:"rewrite"`
	Args    []string `json:"args"`
}

type ComModel

type ComModel struct {
	Version string

	RootDir string
	// ExePath			string;
	// WorkDir			string;
	ConfigPath string

	// DbPath			string;
	WebPath string
	// DataPath		string;
	WebConfigPath string

	Ip   string
	Port string

	ArrIp []string
}

type ComRst

type ComRst struct {
	Success bool        `json:"success"`
	Data    interface{} `json:"data"`
	// InfoType	ErrType.ErrType		`json:"type"`;
	ErrInfo string `json:"errInfo"`
}

func NewComRst

func NewComRst() ComRst

type DirectQueryPostMd

type DirectQueryPostMd struct {
	Sql string `json:"sql"`
}

type FileInfo

type FileInfo struct {
	Name       string `json:"name"`
	IsDir      bool   `json:"isDir"`
	Size       int64  `json:"size"`
	ModifyTime int64  `json:"modifyTime"`
	// CreateTime	int64			`json:"createTime"`;
	Children []FileInfo `json:"children"`
}

type FileMd

type FileMd struct {
	Path    string `json:"path"`
	Rewrite string `json:"rewrite"`
}

type QueryPostMd

type QueryPostMd struct {
	Sql    string        `json:"sql"`
	Params []interface{} `json:"params"`
}

type SaveStringFileMd

type SaveStringFileMd struct {
	Path    string `json:"path"`
	Rewrite string `json:"rewrite"`
	Rename  int    `json:"rename"`
	Data    string `json:"data"`
}

type UploadFileMd

type UploadFileMd struct {
	Rename int `json:"rename"`
}

type WebConfigModel

type WebConfigModel struct {
	IsHttps bool
	Ip      string
	Port    int
}

Jump to

Keyboard shortcuts

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