Documentation ¶
Index ¶
- Variables
- func Connect() (dbox.IConnection, error)
- func ConnectUsingDataConn(dataConn *colonycore.Connection) *queryWrapper
- func ConstructPermission(strPermission string) (result string, err error)
- func CreateResult(success bool, data interface{}, message string) map[string]interface{}
- func FakeWebContext() *knot.WebContext
- func FetchDataSource(_id string, dsType string, path string) ([]map[string]interface{}, error)
- func FetchJSON(url string) ([]map[string]interface{}, error)
- func FetchQuerySelector(data []map[string]interface{}, payload map[string]interface{}) ([]map[string]interface{}, error)
- func FetchThenSaveFile(r *http.Request, sourceFileName string, destinationFileName string) (multipart.File, *multipart.FileHeader, error)
- func ForceAsString(data toolkit.M, which string) string
- func GetBetterType(src interface{}) (string, interface{})
- func GetFileExtension(file string) string
- func HandleError(err error, optionalArgs ...interface{}) bool
- func LoadConfig(pathJson string) (dbox.IConnection, error)
- func Printf(format string, a ...interface{}) (n int, err error)
- func Query(driver string, host string, other ...interface{}) *queryWrapper
- func RandomIDWithPrefix(prefix string) string
- func Recursiver(data []interface{}, sub func(interface{}) []interface{}, ...)
- func ReplaceHostAlias(path string, server colonycore.Server) string
- func RunCommandWithTimeout(sshSetting *sshclient.SshSetting, cmd string, timeout int) error
- func ToUpper(src string) string
- func UploadHandler(r *knot.WebContext, filename, dstpath string) (error, string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DebugMode bool
)
Functions ¶
func Connect ¶
func Connect() (dbox.IConnection, error)
func ConnectUsingDataConn ¶
func ConnectUsingDataConn(dataConn *colonycore.Connection) *queryWrapper
func ConstructPermission ¶
func CreateResult ¶
func FakeWebContext ¶
func FakeWebContext() *knot.WebContext
func FetchDataSource ¶
func FetchQuerySelector ¶
func FetchThenSaveFile ¶
func GetBetterType ¶
func GetBetterType(src interface{}) (string, interface{})
func GetFileExtension ¶
func HandleError ¶
func LoadConfig ¶
func LoadConfig(pathJson string) (dbox.IConnection, error)
func RandomIDWithPrefix ¶
func Recursiver ¶
func Recursiver(data []interface{}, sub func(interface{}) []interface{}, callback func(interface{}))
func ReplaceHostAlias ¶
func RunCommandWithTimeout ¶
func RunCommandWithTimeout(sshSetting *sshclient.SshSetting, cmd string, timeout int) error
func UploadHandler ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.