Documentation ¶
Index ¶
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames(ext string) (files []string)
- func CommandExist(command string) bool
- func Contains(s string, sub ...string) bool
- func DownloadColumn(w http.ResponseWriter, req *http.Request)
- func ExportDatabase(w http.ResponseWriter, r *http.Request)
- func FindDbName(dsn string) (string, error)
- func ImportDatabase(w http.ResponseWriter, r *http.Request)
- func InitCfgFile(configTplFileName, configFileName string) error
- func InitConf()
- func InitCtl(ctlTplName, ctlFilename string) error
- func MustAsset(name string) []byte
- func ParseUploadedFile(r *http.Request, w http.ResponseWriter) (string, string, error)
- func ServeAction(w http.ResponseWriter, r *http.Request)
- func ServeFont(prefix string) http.HandlerFunc
- func ServeHome(w http.ResponseWriter, r *http.Request)
- func ServeLoadLinksConfig(w http.ResponseWriter, r *http.Request)
- func ServeQuery(w http.ResponseWriter, req *http.Request)
- func ServeSaveLinksConfig(w http.ResponseWriter, r *http.Request)
- func ServeSearchDb(w http.ResponseWriter, req *http.Request)
- func ServeTablesByColumn(w http.ResponseWriter, req *http.Request)
- func ServeUpdate(w http.ResponseWriter, r *http.Request) (interface{}, error)
- func TenantsQuery(w http.ResponseWriter, r *http.Request)
- func TimeNow() string
- func WrapHandlerFunc(f func(http.ResponseWriter, *http.Request) (interface{}, error)) http.HandlerFunc
- func WriteExportedSqlFile(tcode string, w http.ResponseWriter, file multipart.File) (string, error)
- type Action
- type ActionProxy
- type AppConfig
- type CacheAction
- type ContextKey
- type DSNS
- type ImportResult
- type LoginUser
- type Merchant
- type MerchantDb
- type QueryResult
- type UnknownAction
- type UpdateResult
- type UpdateResultRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssetNames ¶
func CommandExist ¶
func DownloadColumn ¶
func DownloadColumn(w http.ResponseWriter, req *http.Request)
func ExportDatabase ¶
func ExportDatabase(w http.ResponseWriter, r *http.Request)
func FindDbName ¶
func ImportDatabase ¶
func ImportDatabase(w http.ResponseWriter, r *http.Request)
func InitCfgFile ¶
InitCfgFile initializes the cfg file.
func ParseUploadedFile ¶
func ServeAction ¶
func ServeAction(w http.ResponseWriter, r *http.Request)
func ServeFont ¶
func ServeFont(prefix string) http.HandlerFunc
func ServeLoadLinksConfig ¶
func ServeLoadLinksConfig(w http.ResponseWriter, r *http.Request)
func ServeQuery ¶
func ServeQuery(w http.ResponseWriter, req *http.Request)
func ServeSaveLinksConfig ¶
func ServeSaveLinksConfig(w http.ResponseWriter, r *http.Request)
func ServeSearchDb ¶
func ServeSearchDb(w http.ResponseWriter, req *http.Request)
func ServeTablesByColumn ¶
func ServeTablesByColumn(w http.ResponseWriter, req *http.Request)
func ServeUpdate ¶
func ServeUpdate(w http.ResponseWriter, r *http.Request) (interface{}, error)
func TenantsQuery ¶
func TenantsQuery(w http.ResponseWriter, r *http.Request)
func WrapHandlerFunc ¶
func WrapHandlerFunc(f func(http.ResponseWriter, *http.Request) (interface{}, error)) http.HandlerFunc
func WriteExportedSqlFile ¶
Types ¶
type ActionProxy ¶
type ActionProxy struct {
Proxy string
}
type AppConfig ¶
type AppConfig struct { ContextPath string ListenPort int MaxQueryRows int DSN string DefaultDB string TrrHomeArea string DevMode bool // to disable css/js minify BasicAuth []string ImportDb bool ActionProxy map[string]ActionProxy EncryptKey string CookieName string RedirectUri string LocalUrl string ForceLogin bool // 是否只显示sqlweb表定义的库,不自动补充show databases()的库列表 OnlyShowSqlWebDatabases bool WriteAuthUserNames []string // UserNames which has write auth DSNS []DSNS // 配置文件中的多数据源配置 BasicAuthGroups [][]string `toml:"-"` }
var AppConf AppConfig
func (AppConfig) BasicAuthRequired ¶
type CacheAction ¶
type CacheAction struct { Tenant *Merchant Key string Value string Score string Ttl string Op string // Set/Get/Clear Db int }
func (*CacheAction) Execute ¶
func (t *CacheAction) Execute() ([]byte, error)
type ImportResult ¶
type MerchantDb ¶
type QueryResult ¶
type UnknownAction ¶
type UnknownAction struct { }
func (*UnknownAction) Execute ¶
func (t *UnknownAction) Execute() ([]byte, error)
type UpdateResult ¶
type UpdateResult struct { Ok bool Message string RowsResult []UpdateResultRow }
type UpdateResultRow ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.