MCPcopy Create free account

hub / github.com/Leon2012/gimg / functions

Functions94 in github.com/Leon2012/gimg

↓ 27 callersMethodDebug
(format string, v ...interface{})
zlog.go:182
↓ 20 callersMethodGet
(key string)
zredisdb.go:64
↓ 20 callersMethodInfo
(format string, v ...interface{})
zlog.go:177
↓ 15 callersMethodError
(format string, v ...interface{})
zlog.go:162
↓ 11 callersMethoddoError
(err error, statusCode int)
zhttpd.go:342
↓ 11 callersFunctionround
(val float64)
zutil.go:248
↓ 10 callersMethodLog
(level string, calldepth int, info *Info)
zlog.go:67
↓ 9 callersMethodLog
(lvl string, message string)
zlog.go:132
↓ 8 callersFunctionstr2Int
(str string)
zhttpd.go:347
↓ 8 callersFunctionstr_hash
** * @brief str_hash Hash algorithm of processing a md5 string. * * @param str The md5 string. * * @return The number less than 1024. */
zutil.go:31
↓ 7 callersMethodSetCacheBin
(k string, v []byte)
zcache.go:62
↓ 6 callersFunctioncolorString
(color int)
zlog.go:79
↓ 5 callersMethodClose
()
zredisdb.go:108
↓ 5 callersMethodDestroy
()
zimage.go:16
↓ 4 callersMethodClose
()
zlog.go:197
↓ 4 callersMethodFindCacheBin
(key string)
zcache.go:52
↓ 4 callersMethodOutput
()
zlog.go:50
↓ 4 callersMethodgetConnect
()
zredisdb.go:44
↓ 3 callersMethodDo
(commandName string, args ...interface{})
zredisdb.go:78
↓ 3 callersMethodExist
(key string)
zcache.go:44
↓ 3 callersFunctionNewRedisDB
(s string, p int)
zredisdb.go:17
↓ 3 callersFunctiongen_key
** * @brief gen_key Generate storage key from md5 and other args. * * @param key The key string. * @param md5 The md5 string. * @param argc Count
zutil.go:227
↓ 3 callersFunctiongen_md5_str
(data []byte)
zutil.go:241
↓ 3 callersFunctioninitColors
()
zlog.go:83
↓ 3 callersFunctionis_dir
** * @brief is_dir Check a path is a directory. * * @param path The path input. * * @return 1 for yes and -1 for no. */
zutil.go:98
↓ 2 callersMethodInfoImage
(md5 string)
zstorage.go:11
↓ 2 callersFunctionLoadConfig
func (a *AppConfig) Types() []string { return strings.Split(a.Storage.AllowedTypes, ",") }
zconfig.go:49
↓ 2 callersFunctionNewFileWorker
(prefix string, flag int, color int, logFile *os.File)
zlog.go:63
↓ 2 callersMethodNewImage
(saveName string, data []byte)
zstorage_file.go:71
↓ 2 callersFunctionNewLogger
(module string, color int)
zlog.go:94
↓ 2 callersMethodSend
(commandName string, args ...interface{})
zredisdb.go:89
↓ 2 callersFunctionconvert
(mw *imagick.MagickWand, request *ZRequest)
zscale.go:142
↓ 2 callersFunctionis_md5
** * @brief is_md5 Check the string is a md5 style. * * @param s The string. * * @return 1 for yes and -1 for no. */
zutil.go:50
↓ 1 callersMethodDelCache
(key string)
zcache.go:67
↓ 1 callersMethodFatal
(format string, v ...interface{})
zlog.go:145
↓ 1 callersMethodFindCache
(key string)
zcache.go:31
↓ 1 callersMethodGetImage
NewImage(saveName string, data []byte) error
zstorage.go:10
↓ 1 callersFunctionNewCache
func NewCache(c *memcache.Client) *ZCache { return &ZCache{client: c} }
zcache.go:18
↓ 1 callersFunctionNewConsoleWorker
(prefix string, flag int, color int)
zlog.go:59
↓ 1 callersFunctionNewFileLogger
(module string, color int, logFile string)
zlog.go:100
↓ 1 callersFunctionNewFileStorage
(c *ZContext)
zstorage_file.go:16
↓ 1 callersFunctionNewImage
()
zimage.go:12
↓ 1 callersFunctionNewSSDBStorage
(c *ZContext)
zstorage_ssdb.go:12
↓ 1 callersFunctionNewWorker
(prefix string, flag int, color int, out io.Writer)
zlog.go:55
↓ 1 callersMethodSaveImage
(data []byte)
zstorage.go:8
↓ 1 callersMethodWarning
(format string, v ...interface{})
zlog.go:167
↓ 1 callersFunctioncrop
(mw *imagick.MagickWand, x, y int, cols, rows uint)
zscale.go:9
↓ 1 callersMethoddoDefault
()
zhttpd.go:94
↓ 1 callersMethoddoGet
(md5Sum string)
zhttpd.go:171
↓ 1 callersMethoddoInfo
()
zhttpd.go:116
↓ 1 callersMethoddoUpload
()
zhttpd.go:139
↓ 1 callersFunctiongenContentTypes
()
zhttpd.go:46
↓ 1 callersFunctiongenStorageHandler
(c *ZContext)
zhttpd.go:30
↓ 1 callersFunctionget_type
** * @brief get_type It tell you the type of a file. * * @param filename The name of the file. * @param type Save the type string. * * @return 1
zutil.go:130
↓ 1 callersFunctionis_exist
(path string)
zutil.go:141
↓ 1 callersFunctionis_file
** * @brief is_file Check a filename is a file. * * @param filename The filename input. * * @return 1 for yes and -1 for no. */
zutil.go:75
↓ 1 callersFunctionmk_dir
** * @brief mk_dir It create a new directory with the path input. * * @param path The path you want to create. * * @return 1 for success and -1
zutil.go:153
↓ 1 callersFunctionproportion
(mw *imagick.MagickWand, proportion int, cols uint, rows uint)
zscale.go:43
MethodCritical
(format string, v ...interface{})
zlog.go:157
MethodExist
(key string)
zredisdb.go:53
MethodFlush
()
zredisdb.go:100
MethodGetImage
(request *ZRequest)
zstorage_ssdb.go:38
MethodGetImage
(request *ZRequest)
zstorage_file.go:94
MethodInfoImage
(md5 string)
zstorage_ssdb.go:138
MethodInfoImage
(md5 string)
zstorage_file.go:310
FunctionNewContext
(cfgFile string)
zcommon.go:49
FunctionNewDailyLogger
(module string, color int, logPath string)
zlog.go:111
FunctionNewHttpd
(c *ZContext)
zhttpd.go:24
MethodNotice
(format string, v ...interface{})
zlog.go:172
MethodPanic
(format string, v ...interface{})
zlog.go:151
MethodReTry
()
zcache.go:25
MethodRelease
()
zcommon.go:96
MethodSaveImage
(data []byte)
zstorage_ssdb.go:19
MethodSaveImage
(data []byte)
zstorage_file.go:27
MethodServeHTTP
(w http.ResponseWriter, r *http.Request)
zhttpd.go:57
MethodSetCache
(k string, v string)
zcache.go:39
MethodStrack
(format string, v ...interface{})
zlog.go:187
FunctionTestConnect
(t *testing.T)
zredisdb_test.go:7
FunctionTestGenKey
(t *testing.T)
zutil_test.go:52
FunctionTestGet
(t *testing.T)
zcache_test.go:7
FunctionTestGetRedis
(t *testing.T)
zredisdb_test.go:26
FunctionTestGetType
(t *testing.T)
zutil_test.go:36
FunctionTestIsFile
(t *testing.T)
zutil_test.go:24
FunctionTestIsMd5
(t *testing.T)
zutil_test.go:15
FunctionTestLoadCfg
(t *testing.T)
zconfig_test.go:7
FunctionTestLogger
(t *testing.T)
zlog_test.go:8
FunctionTestRound
(t *testing.T)
zutil_test.go:61
FunctionTestStrHash
(t *testing.T)
zutil_test.go:9
Functiondelete_file
** * @brief delete_file delete a file * * @param path the path of the file * * @return 1 for OK or -1 for fail */
zutil.go:63
Functionget_cpu_cores
** * @brief get_cpu_cores get the cpu cores of a server * * @return the cpu core number */
zutil.go:188
Functionget_file_path
** * @brief get_file_path get the file's path * * @param path the file's parent path * @param file_name the file name * @param file_path the full
zutil.go:208
Functiongettid
** * @brief gettid get pid * * @return pid */
zutil.go:197
Functionis_img
** * @brief is_img Check a file is a image we support(jpg, png, gif). * * @param filename The name of the file. * * @return 1 for success and 0
zutil.go:118
Functionis_special_dir
** * @brief is_special_dir check if the path is a special path * * @param path the path want to check * * @return 1 for yes and -1 for not */
zutil.go:176