Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andeya/erpc
/ functions
Functions
1,742 in github.com/andeya/erpc
⨍
Functions
1,742
◇
Types & classes
282
↓ 1 callers
Method
find
(rgb int)
utils/color/colorable_windows.go:736
↓ 1 callers
Method
foregroundAttr
()
utils/color/colorable_windows.go:631
↓ 1 callers
Function
generateMaskingKey
generateMaskingKey generates a masking key for a frame.
mixer/websocket/websocket/hybi.go:352
↓ 1 callers
Function
generateNonce
generateNonce generates a nonce consisting of a randomly selected 16-byte value that has been base64-encoded.
mixer/websocket/websocket/hybi.go:362
↓ 1 callers
Method
get
get gets *session by id. If second returned arg is false, mean the *session is not found.
session.go:971
↓ 1 callers
Method
getCall
(uriPath string)
router.go:431
↓ 1 callers
Method
getCallHandler
maybe useful
peer.go:503
↓ 1 callers
Method
getPush
(uriPath string)
router.go:442
↓ 1 callers
Method
getPushHandler
(uriPath string)
peer.go:507
↓ 1 callers
Method
goCall
(sess erpc.Session)
plugin/heartbeat/ping.go:202
↓ 1 callers
Method
goPush
(sess erpc.Session)
plugin/heartbeat/ping.go:213
↓ 1 callers
Method
handle
Be executed asynchronously after readed message
context.go:351
↓ 1 callers
Method
handleCall
handleCall handles and replies call.
context.go:483
↓ 1 callers
Method
handlePush
handlePush handles push.
context.go:418
↓ 1 callers
Method
handleReply
handleReply handles call reply.
context.go:616
↓ 1 callers
Method
hasReply
if callCmd.inputMeta!=nil, means the callCmd is replyed.
context.go:864
↓ 1 callers
Function
index
(n int)
utils/bytebuffer.go:251
↓ 1 callers
Method
inherit
()
quic/inherit.go:59
↓ 1 callers
Method
inherit
()
kcp/inherit.go:58
↓ 1 callers
Function
initParentLaddrList
()
graceful.go:134
↓ 1 callers
Function
int2hexbyte
(n int)
utils/bytesconv.go:303
↓ 1 callers
Method
isCall
()
plugin/heartbeat/ping.go:125
↓ 1 callers
Function
isSameAddr
(a1, a2 net.Addr)
quic/inherit.go:150
↓ 1 callers
Function
isSameAddr
(a1, a2 net.Addr)
kcp/inherit.go:149
↓ 1 callers
Method
len
len returns the length of the session hub. NOTE: the count implemented using sync.Map may be inaccurate.
session.go:999
↓ 1 callers
Function
lowercaseByte
(p *byte)
utils/bytesconv.go:346
↓ 1 callers
Method
makeVerifyFuncs
()
plugin/binder/binder.go:500
↓ 1 callers
Function
mapFormToStruct
(val reflect.Value, form map[string][]string)
codec/form_codec.go:144
↓ 1 callers
Function
math_add2
(ctx erpc.CallCtx, arg *[]int)
examples/route_func/server_test.go:37
↓ 1 callers
Function
minmax3f
(a, b, c float32)
utils/color/colorable_windows.go:749
↓ 1 callers
Method
newAddr
(port string)
config.go:109
↓ 1 callers
Function
newConnLimiter
(maxConn int32)
plugin/overloader/connlimiter.go:11
↓ 1 callers
Function
newGzip
newGzip creates a new gizp filter.
xfer/gzip/gzip.go:42
↓ 1 callers
Function
newHybiClientConn
newHybiClientConn creates a client WebSocket connection after handshake.
mixer/websocket/websocket/hybi.go:480
↓ 1 callers
Function
newHybiServerConn
newHybiServerConn returns a new WebSocket connection speaking hybi draft protocol.
mixer/websocket/websocket/hybi.go:581
↓ 1 callers
Function
newParams
(handlerName string, binder *StructArgsBinder)
plugin/binder/binder.go:175
↓ 1 callers
Function
newProxyPlugin
()
examples/proxy_and_seq/proxy_test.go:29
↓ 1 callers
Function
newReadHandleCtx
newReadHandleCtx creates a handlerCtx for one request/response or push.
context.go:183
↓ 1 callers
Method
newRedialCounter
newRedialCounter creates a new redial counter.
dialer.go:156
↓ 1 callers
Function
newRouter
newRouter creates root router.
router.go:255
↓ 1 callers
Function
newServerConn
(rwc io.ReadWriteCloser, buf *bufio.ReadWriter, req *http.Request, config *Config, handshake func(*Config, *ht
mixer/websocket/websocket/server.go:14
↓ 1 callers
Function
newSessionHub
newSessionHub creates a new sessions hub.
session.go:950
↓ 1 callers
Function
newVirtualConn
()
mixer/websocket/proto.go:93
↓ 1 callers
Method
next
(kv *argsKV)
utils/args.go:421
↓ 1 callers
Method
packRequest
(m erpc.Message, header http.Header, bb *utils.ByteBuffer, bodyBytes []byte)
proto/httproto/httproto.go:180
↓ 1 callers
Method
packResponse
(m erpc.Message, header http.Header, bb *utils.ByteBuffer, bodyBytes []byte)
proto/httproto/httproto.go:213
↓ 1 callers
Function
parseHeartbeatRateSecond
(s string)
plugin/heartbeat/pong.go:156
↓ 1 callers
Function
parseProperType
(data []byte, v reflect.Value)
codec/plain_codec.go:126
↓ 1 callers
Function
parseTags
parseTags returns the key-value in the tag string. If the tag does not have the conventional format, the value returned by parseTags is unspecified.
plugin/binder/binder.go:377
↓ 1 callers
Function
parseUintBuf
(b []byte)
utils/bytesconv.go:164
↓ 1 callers
Function
peekArgBytes
(h []argsKV, k []byte)
utils/args.go:397
↓ 1 callers
Function
peekArgStr
(h []argsKV, k string)
utils/args.go:407
↓ 1 callers
Function
popParentLaddr
(network, host, laddr string)
graceful.go:158
↓ 1 callers
Method
postAccept
PreHandshake executes the PostWebsocketAcceptPlugin after websocket accepting connection it is similar to erpc.plugin.PostAcceptPlugin, but a websocke
mixer/websocket/server.go:243
↓ 1 callers
Method
postListen
PostListen is executed between listening and accepting.
plugin.go:357
↓ 1 callers
Method
postNewPeer
PostNewPeer executes the defined plugins after creating peer.
plugin.go:331
↓ 1 callers
Method
postReadCallBody
PostReadCallBody executes the defined plugins after reading CALL message body.
plugin.go:574
↓ 1 callers
Method
postReadCallHeader
PostReadCallHeader executes the defined plugins after reading CALL message header.
plugin.go:546
↓ 1 callers
Method
postReadPushBody
PostReadPushBody executes the defined plugins after reading PUSH message body.
plugin.go:616
↓ 1 callers
Method
postReadPushHeader
PostReadPushHeader executes the defined plugins after reading PUSH message header.
plugin.go:588
↓ 1 callers
Method
postReadReplyBody
PostReadReplyBody executes the defined plugins after reading REPLY message body.
plugin.go:658
↓ 1 callers
Method
postReadReplyHeader
PostReadReplyHeader executes the defined plugins after reading REPLY message header.
plugin.go:630
↓ 1 callers
Method
postReg
PostReg executes the defined plugins before registering handler.
plugin.go:344
↓ 1 callers
Method
postWriteCall
PostWriteCall executes the defined plugins after successful writing CALL message.
plugin.go:460
↓ 1 callers
Method
postWritePush
PostWritePush executes the defined plugins after successful writing PUSH message.
plugin.go:516
↓ 1 callers
Method
postWriteReply
PostWriteReply executes the defined plugins after successful writing REPLY message.
plugin.go:487
↓ 1 callers
Method
preHandshake
PreHandshake executes the PreWebsocketHandshakePlugins before websocket handshake, you can still deal with http.Request in this stage.
mixer/websocket/server.go:219
↓ 1 callers
Method
preNewPeer
PreNewPeer executes the defined plugins before creating peer.
plugin.go:318
↓ 1 callers
Method
preReadCallBody
PreReadCallBody executes the defined plugins before reading CALL message body.
plugin.go:560
↓ 1 callers
Method
preReadHeader
PreReadHeader executes the defined plugins before reading message header.
plugin.go:530
↓ 1 callers
Method
preReadPushBody
PreReadPushBody executes the defined plugins before reading PUSH message body.
plugin.go:602
↓ 1 callers
Method
preReadReplyBody
PreReadReplyBody executes the defined plugins before reading REPLY message body.
plugin.go:644
↓ 1 callers
Method
preWriteCall
PreWriteCall executes the defined plugins before writing CALL message.
plugin.go:444
↓ 1 callers
Method
preWritePush
PreWritePush executes the defined plugins before writing PUSH message.
plugin.go:500
↓ 1 callers
Method
preWriteReply
PreWriteReply executes the defined plugins before writing REPLY message.
plugin.go:474
↓ 1 callers
Function
pushParentLaddr
(network, host, addr string)
graceful.go:146
↓ 1 callers
Method
rangeCallback
rangeCallback calls f sequentially for each id and *session present in the session hub. If fn returns false, stop traversing.
session.go:981
↓ 1 callers
Method
reInit
(s *session)
context.go:191
↓ 1 callers
Method
readBody
(data []byte, m Message)
socket/protocol.go:315
↓ 1 callers
Method
readDisconnected
(oldConn net.Conn, err error)
session.go:790
↓ 1 callers
Method
readHeader
(data []byte, m Message)
socket/protocol.go:279
↓ 1 callers
Method
readMessage
(bb *utils.ByteBuffer, m Message)
socket/protocol.go:224
↓ 1 callers
Method
release
()
plugin/overloader/connlimiter.go:31
↓ 1 callers
Function
releaseArg
(h []argsKV)
utils/args.go:379
↓ 1 callers
Function
removeZone
removeZone removes IPv6 zone identifer from host. E.g., "[fe80::1%en0]:8080" to "[fe80::1]:8080"
mixer/websocket/websocket/hybi.go:374
↓ 1 callers
Method
serveConn
(evioConn evio.Conn)
mixer/evio/evio.go:119
↓ 1 callers
Method
serveListener
serveListener serves the listener. NOTE: The caller ensures that the listener supports graceful shutdown.
peer.go:315
↓ 1 callers
Function
setArgBytes
(h []argsKV, key, value []byte)
utils/args.go:341
↓ 1 callers
Function
setBoolField
(val string, field reflect.Value)
codec/form_codec.go:266
↓ 1 callers
Function
setParentLaddrList
()
graceful.go:139
↓ 1 callers
Method
setReplyBodyCodec
(hasError bool)
context.go:563
↓ 1 callers
Function
setStructToForm
(q url.Values, val reflect.Value)
codec/form_codec.go:79
↓ 1 callers
Function
setTimeField
(val string, structField reflect.StructField, value reflect.Value)
codec/form_codec.go:288
↓ 1 callers
Function
shutdown
()
graceful.go:49
↓ 1 callers
Function
skipBenchmark
(dAtA []byte)
examples/bench/msg/benchmark.pb.go:1832
↓ 1 callers
Function
skipEmpty
(dAtA []byte)
codec/empty.pb.go:160
↓ 1 callers
Function
skipPayload
(dAtA []byte)
mixer/websocket/pbSubProto/pb/payload.pb.go:470
↓ 1 callers
Function
skipSecure
(dAtA []byte)
plugin/secure/secure.pb.go:254
↓ 1 callers
Function
skipTest
(dAtA []byte)
socket/example/pb/test.pb.go:231
↓ 1 callers
Function
sovEmpty
(x uint64)
codec/empty.pb.go:97
← previous
next →
601–700 of 1,742, ranked by callers