MCPcopy Index your code

hub / github.com/cookieY/yee / functions

Functions417 in github.com/cookieY/yee

↓ 2 callersMethodbindData
(ptr interface{}, data map[string][]string, tag string)
bind.go:101
↓ 2 callersMethodcreateDistHandler
(relativePath string, fs http.FileSystem)
router.go:153
↓ 2 callersMethodincrementChildPrio
Increments priority of the given child and reorders if necessary
tree.go:106
↓ 2 callersMethodinsertChild
(path string, fullPath string, handlers HandlersChain)
tree.go:272
↓ 2 callersFunctionlastChar
(str string)
common.go:24
↓ 2 callersFunctionlimitString
(str string, size int)
middleware/trace.go:166
↓ 2 callersFunctionmin
(a, b int)
tree.go:61
↓ 2 callersFunctionserveError
(c *context, code int, defaultMessage []byte)
yee.go:227
↓ 2 callersFunctionsetFloatField
(value string, bitSize int, field reflect.Value)
bind.go:288
↓ 2 callersFunctionsetWithProperType
(valueKind reflect.Kind, val string, structField reflect.Value)
bind.go:183
↓ 2 callersFunctionunmarshalField
(valueKind reflect.Kind, val string, field reflect.Value)
bind.go:226
↓ 2 callersFunctionunmarshalFieldNonPtr
(value string, field reflect.Value)
bind.go:235
↓ 1 callersFunctionBasicAuth
BasicAuth is the default implementation BasicAuth middleware
middleware/basicAuth.go:25
↓ 1 callersFunctionBasicAuthWithConfig
BasicAuthWithConfig is the custom implementation BasicAuth middleware
middleware/basicAuth.go:32
↓ 1 callersMethodBlack
(msg interface{}, styles ...string)
logger/color.go:176
↓ 1 callersMethodBlackBg
(msg interface{}, styles ...string)
logger/color.go:212
↓ 1 callersMethodBlueBg
(msg interface{}, styles ...string)
logger/color.go:228
↓ 1 callersMethodBold
(msg interface{}, styles ...string)
logger/color.go:248
↓ 1 callersFunctionCSRF
CSRF is the default implementation CSRF middleware
middleware/csrf.go:39
↓ 1 callersFunctionCSRFWithConfig
CSRFWithConfig is the custom implementation CSRF middleware
middleware/csrf.go:44
↓ 1 callersMethodCookies
()
context.go:57
↓ 1 callersFunctionCorsWithConfig
CorsWithConfig is the default implementation CORS middleware
middleware/cors.go:43
↓ 1 callersMethodCrashWithStatus
(code int)
context.go:66
↓ 1 callersMethodCrashWithString
(code int, str string)
context.go:195
↓ 1 callersMethodCustom
(msg string)
logger/log.go:46
↓ 1 callersFunctionCustomerMiddleware
()
middleware/multiMiddle_test.go:46
↓ 1 callersFunctionCyan
(msg interface{}, styles ...string)
logger/color.go:333
↓ 1 callersMethodCyanBg
(msg interface{}, styles ...string)
logger/color.go:236
↓ 1 callersMethodDELETE
(path string, handler ...HandlerFunc)
router.go:42
↓ 1 callersMethodDim
(msg interface{}, styles ...string)
logger/color.go:252
↓ 1 callersFunctionDir
Dir returns a http.FileSystem that can be used by http.FileServer(). It is used internally in router.Static(). if listDirectory == true, then it works
fs.go:20
↓ 1 callersMethodDisable
Disable disables the colors and styles.
logger/color.go:152
↓ 1 callersMethodFile
(file string)
context.go:36
↓ 1 callersMethodFormFile
(name string)
context.go:35
↓ 1 callersMethodFormParams
()
context.go:34
↓ 1 callersFunctionGenJwtToken
()
middleware/jwt_test.go:15
↓ 1 callersFunctionGenerateRestfulAPI
(GenCodeVal GenCodeVal)
gen.go:83
↓ 1 callersMethodGet
Get returns the value of the first Param which key matches the given name. If no matching Param is found, an empty string is returned.
tree.go:29
↓ 1 callersFunctionGreen
(msg interface{}, styles ...string)
logger/color.go:317
↓ 1 callersMethodGreen
(msg interface{}, styles ...string)
logger/color.go:184
↓ 1 callersMethodGreenBg
(msg interface{}, styles ...string)
logger/color.go:220
↓ 1 callersMethodGrey
(msg interface{}, styles ...string)
logger/color.go:208
↓ 1 callersMethodHidden
(msg interface{}, styles ...string)
logger/color.go:268
↓ 1 callersMethodInverse
(msg interface{}, styles ...string)
logger/color.go:264
↓ 1 callersMethodIsLogger
(isOk bool)
logger/log.go:49
↓ 1 callersMethodIsTLS
()
context.go:49
↓ 1 callersMethodItalic
(msg interface{}, styles ...string)
logger/color.go:256
↓ 1 callersMethodJSON
(code int, i interface{})
context.go:267
↓ 1 callersFunctionJwtParse
(c yee.Context)
middleware/jwt_test.go:27
↓ 1 callersFunctionLoggerWithConfig
LoggerWithConfig is custom implementation of logger middleware
middleware/logger.go:35
↓ 1 callersMethodMagentaBg
(msg interface{}, styles ...string)
logger/color.go:232
↓ 1 callersMethodMatchAlgorithm
()
middleware/proxy.go:14
↓ 1 callersMethodOPTIONS
(path string, handler ...HandlerFunc)
router.go:58
↓ 1 callersMethodPATCH
(path string, handler ...HandlerFunc)
router.go:46
↓ 1 callersMethodPUT
(path string, handler ...HandlerFunc)
router.go:38
↓ 1 callersMethodPath
()
context.go:68
↓ 1 callersMethodPprof
()
pprof.go:32
↓ 1 callersMethodPrint
Print is analogous to `fmt.Print` with termial detection.
logger/color.go:162
↓ 1 callersMethodQueryParams
()
context.go:53
↓ 1 callersFunctionRecovery
Recovery is a recovery middleware when the program was panic it can recovery program and print stack info
middleware/recovery.go:15
↓ 1 callersFunctionRed
(msg interface{}, styles ...string)
logger/color.go:313
↓ 1 callersMethodRedBg
(msg interface{}, styles ...string)
logger/color.go:216
↓ 1 callersMethodRedirect
(code int, uri string)
context.go:45
↓ 1 callersMethodRequest
()
context.go:209
↓ 1 callersFunctionRequestID
RequestID is the default implementation of requestID middleware
middleware/requestID.go:25
↓ 1 callersFunctionRequestIDWithConfig
RequestIDWithConfig is the custom implementation of requestID middleware
middleware/requestID.go:30
↓ 1 callersMethodResponse
()
context.go:217
↓ 1 callersMethodRunH2C
RunH2C is launch of h2c In normal conditions, http2 must used certificate H2C is non-certificate`s http2 notes: 1.the browser is not supports H2C prot
yee.go:169
↓ 1 callersMethodScheme
()
context.go:48
↓ 1 callersFunctionSecureWithConfig
SecureWithConfig is custom implementation of secure middleware
middleware/secure.go:47
↓ 1 callersMethodSetLogLevel
SetLogLevel define custom log level
yee.go:86
↓ 1 callersMethodSetOut
(out io.Writer)
logger/log.go:48
↓ 1 callersMethodSetRequest
(r *http.Request)
context.go:26
↓ 1 callersMethodStatus
(code int)
context.go:312
↓ 1 callersMethodStrikeout
(msg interface{}, styles ...string)
logger/color.go:272
↓ 1 callersMethodString
(code int, s string)
context.go:308
↓ 1 callersFunctionSuperManageGroup
()
middleware/jwt_test.go:33
↓ 1 callersFunctionTraceWithConfig
(config TraceConfig)
middleware/trace.go:65
↓ 1 callersMethodUnderline
(msg interface{}, styles ...string)
logger/color.go:260
↓ 1 callersMethodUnmarshalParam
UnmarshalParam decodes and assigns a value from an form or query param.
bind.go:26
↓ 1 callersMethodWhite
(msg interface{}, styles ...string)
logger/color.go:204
↓ 1 callersMethodWhiteBg
(msg interface{}, styles ...string)
logger/color.go:240
↓ 1 callersMethodYellowBg
(msg interface{}, styles ...string)
logger/color.go:224
↓ 1 callersMethodaddRoute
(method, prefix string, handlers HandlersChain)
router.go:105
↓ 1 callersFunctionaddRouter
(y *Core)
yee_test.go:12
↓ 1 callersMethodallocateContext
()
yee.go:94
↓ 1 callersMethodbind
Bind implements the `Binder#Bind` function.
bind.go:45
↓ 1 callersFunctioncountParams
(path string)
tree.go:77
↓ 1 callersFunctioncrashMiddleware
()
context_test.go:57
↓ 1 callersFunctioncsrfTokenFromForm
(param string)
middleware/csrf.go:146
↓ 1 callersFunctioncsrfTokenFromHeader
(header string)
middleware/csrf.go:126
↓ 1 callersFunctioncsrfTokenFromQuery
(param string)
middleware/csrf.go:136
↓ 1 callersFunctionfile_host_proto_init
()
test/host.pb.go:141
↓ 1 callersFunctionfile_host_proto_rawDescGZIP
()
test/host.pb.go:121
↓ 1 callersMethodfindCaseInsensitivePathRec
Recursive case-insensitive lookup function used by n.findCaseInsensitivePath
tree.go:586
↓ 1 callersFunctionfindWildcard
Search for a wildcard segment and check the name for invalid characters. Returns -1 as index, if no wildcard was found.
tree.go:249
↓ 1 callersFunctiongenerateToken
()
middleware/trace.go:160
↓ 1 callersMethodget
(method string)
tree.go:52
↓ 1 callersFunctiongetRequestID
(ctx yee.Context)
middleware/trace.go:152
↓ 1 callersMethodgetValue
Returns the handle registered with the given path (key). The values of wildcards are saved to a map. If no handle can be found, a TSR (trailing slash
tree.go:395
← previousnext →101–200 of 417, ranked by callers