MCPcopy Index your code

hub / github.com/cookieY/yee / functions

Functions417 in github.com/cookieY/yee

↓ 75 callersMethodString
(code int, s string)
context.go:32
↓ 48 callersMethodServeHTTP
override Handler.ServeHTTP all requests/response deal with here we use sync.pool save context variable because we do this can be used less memory we j
yee.go:125
↓ 45 callersMethodGET
Implement the HTTP method and add to the router table GET,POST,PUT,DELETE,OPTIONS,TRACE,HEAD,PATCH these are defined in RFC 7231 section 4.3.
router.go:30
↓ 41 callersMethodGet
(key string)
context.go:58
↓ 36 callersFunctionNew
New create a core and perform a series of initializations
yee.go:57
↓ 27 callersMethodError
(msg interface{})
logger/log.go:37
↓ 25 callersFunctionouter
(n string)
logger/color.go:105
↓ 20 callersMethodRequest
()
context.go:25
↓ 17 callersMethodRun
Run is launch of http
yee.go:146
↓ 17 callersMethodSetHeader
(key string, value string)
context.go:41
↓ 17 callersMethodUse
Use defines which middleware is uesd when we dose not match prefix or method we`ll register noRoute or noMethod handle for this otherwise, we cannot b
yee.go:103
↓ 17 callersMethodhandle
(method, path string, handlers HandlersChain)
router.go:99
↓ 15 callersMethodResponse
()
context.go:27
↓ 14 callersMethodJSON
(code int, i interface{})
context.go:30
↓ 13 callersMethodLogger
()
context.go:62
↓ 13 callersMethodPOST
(path string, handler ...HandlerFunc)
router.go:34
↓ 12 callersFunctionC
()
yee.go:63
↓ 12 callersFunctiongetPrefix
(prefixOptions string)
pprof.go:10
↓ 11 callersMethodParams
(name string)
context.go:46
↓ 10 callersMethodBind
(i interface{})
context.go:54
↓ 10 callersMethodPrintln
Println is analogous to `fmt.Println` with termial detection.
logger/color.go:167
↓ 10 callersMethodWrite
(data []byte)
response_overide.go:88
↓ 10 callersMethoddyer
(level int, msg *string)
logger/log.go:197
↓ 10 callersMethodlogWrite
(msg interface{}, level uint8)
logger/log.go:94
↓ 9 callersMethodNext
()
context.go:51
↓ 9 callersMethodWrite
(b []byte)
middleware/trace.go:183
↓ 8 callersMethodWriteHeader
(code int)
response_overide.go:72
↓ 8 callersMethodWriteString
Writes the string into the response body.
response_overide.go:34
↓ 7 callersMethodErrorf
(error string, msg ...interface{})
logger/log.go:42
↓ 7 callersMethodServerError
(code int, defaultMessage string)
context.go:60
↓ 7 callersMethodprint
(msg string)
logger/log.go:124
↓ 6 callersMethodCritical
(msg interface{})
logger/log.go:36
↓ 6 callersMethodStatus
(code int)
context.go:38
↓ 6 callersFunctionWrapF
(f http.HandlerFunc)
pprof.go:18
↓ 6 callersFunctionWrapH
(h http.Handler)
pprof.go:25
↓ 6 callersMethodWritten
Returns true if the response body was already written.
response_overide.go:37
↓ 5 callersFunctionCors
Cors is the default implementation CORS middleware
middleware/cors.go:38
↓ 5 callersMethodPut
(key string, values interface{})
context.go:59
↓ 5 callersMethodRemoteIP
()
context.go:61
↓ 5 callersMethodWriteHeaderNow
Forces to write the http header (status code + headers).
response_overide.go:40
↓ 5 callersFunctionsetIntField
(value string, bitSize int, field reflect.Value)
bind.go:255
↓ 5 callersFunctionsetUintField
(value string, bitSize int, field reflect.Value)
bind.go:266
↓ 5 callersFunctionyeeHandler
(method, path string)
benchmark_test.go:347
↓ 4 callersMethodAddHeader
(key string, value string)
context.go:42
↓ 4 callersMethodGetHeader
(key string)
context.go:43
↓ 4 callersFunctionLogCreator
LogCreator ...
logger/log.go:53
↓ 4 callersMethodPrintf
Printf is analogous to `fmt.Printf` with termial detection.
logger/color.go:172
↓ 4 callersMethodQueryParam
(name string)
context.go:39
↓ 4 callersMethodStatic
(relativePath, root string)
router.go:129
↓ 4 callersMethodcombineHandlers
(handlers HandlersChain)
router.go:178
↓ 4 callersMethodwriteContentType
(value string)
context.go:456
↓ 3 callersMethodBlue
(msg interface{}, styles ...string)
logger/color.go:192
↓ 3 callersMethodCrash
()
context.go:173
↓ 3 callersMethodEnable
Enable enables the colors and styles.
logger/color.go:157
↓ 3 callersMethodGroup
(prefix string, handlers ...HandlerFunc)
router.go:90
↓ 3 callersMethodInfo
(msg interface{})
logger/log.go:39
↓ 3 callersMethodIsWebsocket
()
context.go:50
↓ 3 callersFunctionJWTWithConfig
JWTWithConfig is the custom implementation CORS middleware
middleware/jwt.go:45
↓ 3 callersMethodLogger
()
context.go:142
↓ 3 callersFunctionNew
New creates a Color instance.
logger/color.go:132
↓ 3 callersMethodNewContext
NewContext is for testing
yee.go:136
↓ 3 callersMethodOpen
Open conforms to http.Filesystem.
fs.go:29
↓ 3 callersMethodOverride
(rw http.ResponseWriter)
response_overide.go:47
↓ 3 callersMethodReset
()
context.go:63
↓ 3 callersMethodRestful
(path string, api RestfulAPI)
router.go:62
↓ 3 callersMethodWarn
(msg interface{})
logger/log.go:38
↓ 3 callersMethodWriteHeaderNow
()
response_overide.go:81
↓ 3 callersMethodWriter
()
response_overide.go:45
↓ 3 callersFunctionbenchmarkRoutes
(b *testing.B, router http.Handler, routes []*Route)
benchmark_test.go:370
↓ 3 callersMethodcalculateAbsolutePath
(relativePath string)
router.go:174
↓ 3 callersFunctionloadYeeRoutes
(e *Core, routes []*Route)
benchmark_test.go:353
↓ 3 callersMethodreset
()
context.go:109
↓ 3 callersFunctionshiftNRuneBytes
Shift bytes in array by n bytes left
tree.go:570
↓ 2 callersMethodBlob
(code int, contentType string, b []byte)
context.go:256
↓ 2 callersFunctionBytesToString
BytesToString converts byte slice to string without a memory allocation.
common.go:20
↓ 2 callersMethodCookie
(name string)
context.go:55
↓ 2 callersMethodCriticalf
(error string, msg ...interface{})
logger/log.go:41
↓ 2 callersMethodCyan
(msg interface{}, styles ...string)
logger/color.go:200
↓ 2 callersMethodDebug
(msg interface{})
logger/log.go:40
↓ 2 callersMethodDebugf
(error string, msg ...interface{})
logger/log.go:45
↓ 2 callersMethodFormValue
(name string)
context.go:33
↓ 2 callersFunctionGenQueryExpr
(QueryExpr []expr)
gen.go:94
↓ 2 callersMethodGetResponse
()
middleware/trace.go:187
↓ 2 callersFunctionGzipWithConfig
GzipWithConfig is the custom implementation of gzip middleware
middleware/gzip.go:34
↓ 2 callersMethodHEAD
(path string, handler ...HandlerFunc)
router.go:50
↓ 2 callersMethodHTMLBlob
(code int, b []byte)
context.go:252
↓ 2 callersMethodInfof
(error string, msg ...interface{})
logger/log.go:44
↓ 2 callersFunctionLogger
Logger is default implementation of logger middleware
middleware/logger.go:30
↓ 2 callersMethodMagenta
(msg interface{}, styles ...string)
logger/color.go:196
↓ 2 callersFunctionRateLimitWithConfig
RateLimitWithConfig is the custom implementation of rateLimit middleware
middleware/rateLimit.go:31
↓ 2 callersMethodRed
(msg interface{}, styles ...string)
logger/color.go:180
↓ 2 callersFunctionSecure
Secure is default implementation of secure middleware
middleware/secure.go:42
↓ 2 callersMethodSetCookie
(cookie *http.Cookie)
context.go:56
↓ 2 callersMethodSetLevel
(level uint8)
logger/log.go:47
↓ 2 callersMethodSetOutput
SetOutput sets the output.
logger/color.go:144
↓ 2 callersMethodSize
Returns the number of bytes already written into the response http body. See Written()
response_overide.go:31
↓ 2 callersFunctionStringToBytes
StringToBytes converts string to byte slice without a memory allocation.
common.go:12
↓ 2 callersMethodWarnf
(error string, msg ...interface{})
logger/log.go:43
↓ 2 callersMethodWritten
()
response_overide.go:110
↓ 2 callersMethodYellow
(msg interface{}, styles ...string)
logger/color.go:188
next →1–100 of 417, ranked by callers