Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/cookieY/yee
/ functions
Functions
417 in github.com/cookieY/yee
⨍
Functions
417
◇
Types & classes
56
↓ 75 callers
Method
String
(code int, s string)
context.go:32
↓ 48 callers
Method
ServeHTTP
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 callers
Method
GET
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 callers
Method
Get
(key string)
context.go:58
↓ 36 callers
Function
New
New create a core and perform a series of initializations
yee.go:57
↓ 27 callers
Method
Error
(msg interface{})
logger/log.go:37
↓ 25 callers
Function
outer
(n string)
logger/color.go:105
↓ 20 callers
Method
Request
()
context.go:25
↓ 17 callers
Method
Run
Run is launch of http
yee.go:146
↓ 17 callers
Method
SetHeader
(key string, value string)
context.go:41
↓ 17 callers
Method
Use
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 callers
Method
handle
(method, path string, handlers HandlersChain)
router.go:99
↓ 15 callers
Method
Response
()
context.go:27
↓ 14 callers
Method
JSON
(code int, i interface{})
context.go:30
↓ 13 callers
Method
Logger
()
context.go:62
↓ 13 callers
Method
POST
(path string, handler ...HandlerFunc)
router.go:34
↓ 12 callers
Function
C
()
yee.go:63
↓ 12 callers
Function
getPrefix
(prefixOptions string)
pprof.go:10
↓ 11 callers
Method
Params
(name string)
context.go:46
↓ 10 callers
Method
Bind
(i interface{})
context.go:54
↓ 10 callers
Method
Println
Println is analogous to `fmt.Println` with termial detection.
logger/color.go:167
↓ 10 callers
Method
Write
(data []byte)
response_overide.go:88
↓ 10 callers
Method
dyer
(level int, msg *string)
logger/log.go:197
↓ 10 callers
Method
logWrite
(msg interface{}, level uint8)
logger/log.go:94
↓ 9 callers
Method
Next
()
context.go:51
↓ 9 callers
Method
Write
(b []byte)
middleware/trace.go:183
↓ 8 callers
Method
WriteHeader
(code int)
response_overide.go:72
↓ 8 callers
Method
WriteString
Writes the string into the response body.
response_overide.go:34
↓ 7 callers
Method
Errorf
(error string, msg ...interface{})
logger/log.go:42
↓ 7 callers
Method
ServerError
(code int, defaultMessage string)
context.go:60
↓ 7 callers
Method
print
(msg string)
logger/log.go:124
↓ 6 callers
Method
Critical
(msg interface{})
logger/log.go:36
↓ 6 callers
Method
Status
(code int)
context.go:38
↓ 6 callers
Function
WrapF
(f http.HandlerFunc)
pprof.go:18
↓ 6 callers
Function
WrapH
(h http.Handler)
pprof.go:25
↓ 6 callers
Method
Written
Returns true if the response body was already written.
response_overide.go:37
↓ 5 callers
Function
Cors
Cors is the default implementation CORS middleware
middleware/cors.go:38
↓ 5 callers
Method
Put
(key string, values interface{})
context.go:59
↓ 5 callers
Method
RemoteIP
()
context.go:61
↓ 5 callers
Method
WriteHeaderNow
Forces to write the http header (status code + headers).
response_overide.go:40
↓ 5 callers
Function
setIntField
(value string, bitSize int, field reflect.Value)
bind.go:255
↓ 5 callers
Function
setUintField
(value string, bitSize int, field reflect.Value)
bind.go:266
↓ 5 callers
Function
yeeHandler
(method, path string)
benchmark_test.go:347
↓ 4 callers
Method
AddHeader
(key string, value string)
context.go:42
↓ 4 callers
Method
GetHeader
(key string)
context.go:43
↓ 4 callers
Function
LogCreator
LogCreator ...
logger/log.go:53
↓ 4 callers
Method
Printf
Printf is analogous to `fmt.Printf` with termial detection.
logger/color.go:172
↓ 4 callers
Method
QueryParam
(name string)
context.go:39
↓ 4 callers
Method
Static
(relativePath, root string)
router.go:129
↓ 4 callers
Method
combineHandlers
(handlers HandlersChain)
router.go:178
↓ 4 callers
Method
writeContentType
(value string)
context.go:456
↓ 3 callers
Method
Blue
(msg interface{}, styles ...string)
logger/color.go:192
↓ 3 callers
Method
Crash
()
context.go:173
↓ 3 callers
Method
Enable
Enable enables the colors and styles.
logger/color.go:157
↓ 3 callers
Method
Group
(prefix string, handlers ...HandlerFunc)
router.go:90
↓ 3 callers
Method
Info
(msg interface{})
logger/log.go:39
↓ 3 callers
Method
IsWebsocket
()
context.go:50
↓ 3 callers
Function
JWTWithConfig
JWTWithConfig is the custom implementation CORS middleware
middleware/jwt.go:45
↓ 3 callers
Method
Logger
()
context.go:142
↓ 3 callers
Function
New
New creates a Color instance.
logger/color.go:132
↓ 3 callers
Method
NewContext
NewContext is for testing
yee.go:136
↓ 3 callers
Method
Open
Open conforms to http.Filesystem.
fs.go:29
↓ 3 callers
Method
Override
(rw http.ResponseWriter)
response_overide.go:47
↓ 3 callers
Method
Reset
()
context.go:63
↓ 3 callers
Method
Restful
(path string, api RestfulAPI)
router.go:62
↓ 3 callers
Method
Warn
(msg interface{})
logger/log.go:38
↓ 3 callers
Method
WriteHeaderNow
()
response_overide.go:81
↓ 3 callers
Method
Writer
()
response_overide.go:45
↓ 3 callers
Function
benchmarkRoutes
(b *testing.B, router http.Handler, routes []*Route)
benchmark_test.go:370
↓ 3 callers
Method
calculateAbsolutePath
(relativePath string)
router.go:174
↓ 3 callers
Function
loadYeeRoutes
(e *Core, routes []*Route)
benchmark_test.go:353
↓ 3 callers
Method
reset
()
context.go:109
↓ 3 callers
Function
shiftNRuneBytes
Shift bytes in array by n bytes left
tree.go:570
↓ 2 callers
Method
Blob
(code int, contentType string, b []byte)
context.go:256
↓ 2 callers
Function
BytesToString
BytesToString converts byte slice to string without a memory allocation.
common.go:20
↓ 2 callers
Method
Cookie
(name string)
context.go:55
↓ 2 callers
Method
Criticalf
(error string, msg ...interface{})
logger/log.go:41
↓ 2 callers
Method
Cyan
(msg interface{}, styles ...string)
logger/color.go:200
↓ 2 callers
Method
Debug
(msg interface{})
logger/log.go:40
↓ 2 callers
Method
Debugf
(error string, msg ...interface{})
logger/log.go:45
↓ 2 callers
Method
FormValue
(name string)
context.go:33
↓ 2 callers
Function
GenQueryExpr
(QueryExpr []expr)
gen.go:94
↓ 2 callers
Method
GetResponse
()
middleware/trace.go:187
↓ 2 callers
Function
GzipWithConfig
GzipWithConfig is the custom implementation of gzip middleware
middleware/gzip.go:34
↓ 2 callers
Method
HEAD
(path string, handler ...HandlerFunc)
router.go:50
↓ 2 callers
Method
HTMLBlob
(code int, b []byte)
context.go:252
↓ 2 callers
Method
Infof
(error string, msg ...interface{})
logger/log.go:44
↓ 2 callers
Function
Logger
Logger is default implementation of logger middleware
middleware/logger.go:30
↓ 2 callers
Method
Magenta
(msg interface{}, styles ...string)
logger/color.go:196
↓ 2 callers
Function
RateLimitWithConfig
RateLimitWithConfig is the custom implementation of rateLimit middleware
middleware/rateLimit.go:31
↓ 2 callers
Method
Red
(msg interface{}, styles ...string)
logger/color.go:180
↓ 2 callers
Function
Secure
Secure is default implementation of secure middleware
middleware/secure.go:42
↓ 2 callers
Method
SetCookie
(cookie *http.Cookie)
context.go:56
↓ 2 callers
Method
SetLevel
(level uint8)
logger/log.go:47
↓ 2 callers
Method
SetOutput
SetOutput sets the output.
logger/color.go:144
↓ 2 callers
Method
Size
Returns the number of bytes already written into the response http body. See Written()
response_overide.go:31
↓ 2 callers
Function
StringToBytes
StringToBytes converts string to byte slice without a memory allocation.
common.go:12
↓ 2 callers
Method
Warnf
(error string, msg ...interface{})
logger/log.go:43
↓ 2 callers
Method
Written
()
response_overide.go:110
↓ 2 callers
Method
Yellow
(msg interface{}, styles ...string)
logger/color.go:188
next →
1–100 of 417, ranked by callers