MCPcopy Create free account

hub / github.com/andeya/erpc / functions

Functions1,742 in github.com/andeya/erpc

↓ 7 callersMethodcheckStatus
(checkList ...int32)
session.go:246
↓ 7 callersFunctionencodeVarintPayload
(dAtA []byte, offset int, v uint64)
mixer/websocket/pbSubProto/pb/payload.pb.go:181
↓ 7 callersFunctionmessageLogBytes
(message Message, printDetail bool)
session.go:1068
↓ 7 callersFunctionnewHybiConn
newHybiConn creates a new WebSocket connection speaking hybi draft protocol.
mixer/websocket/websocket/hybi.go:335
↓ 7 callersFunctionnewPluginContainer
newPluginContainer new a plugin container.
plugin.go:164
↓ 6 callersFunctionDebugf
Debugf logs a message using DEBUG as log level.
log.go:361
↓ 6 callersFunctionGet
Get returns Codec by id.
codec/codec.go:66
↓ 6 callersMethodHealth
Health checks if the session is usable.
session.go:135
↓ 6 callersMethodName
Name returns name.
plugin/heartbeat/ping.go:51
↓ 6 callersFunctionNewJSONSubProtoFunc
NewJSONSubProtoFunc is creation function of JSON socket protocol.
mixer/websocket/jsonSubProto/jsonSubProto.go:17
↓ 6 callersFunctionPrintf
************ global logger functions ************ Printf formats according to a format specifier and writes to standard output. It returns the number
log.go:273
↓ 6 callersMethodRange
Range calls f sequentially for each XferFilter present in the XferPipe. If f returns false, range stops the iteration.
xfer/xfer.go:155
↓ 6 callersMethodRouteCallFunc
RouteCallFunc registers CALL handler, and returns the path.
peer.go:62
↓ 6 callersMethodRoutePushFunc
RoutePushFunc registers PUSH handler, and returns the path.
peer.go:66
↓ 6 callersMethodSetTLSConfig
SetTLSConfig sets the TLS config.
peer.go:44
↓ 6 callersMethodSubRoute
SubRoute adds handler group.
peer.go:58
↓ 6 callersFunctionWarnf
Warnf logs a message using WARNING as log level.
log.go:331
↓ 6 callersFunctionappendArg
(args []argsKV, key, value string)
utils/args.go:361
↓ 6 callersFunctionminus
(a int, b int)
socket/protocol.go:271
↓ 6 callersFunctionstrconvErr
(err error)
plugin/binder/binder.go:808
↓ 6 callersMethodtakeTotalQPS
()
plugin/overloader/overloader.go:203
↓ 5 callersMethodAddr
Destroy destroys the listener. Any blocked Accept operations will be unblocked and return errors. func (l *Listener) Destroy() error { return l.lis.C
quic/quic.go:130
↓ 5 callersMethodAddr
Addr returns the address.
mixer/multiclient/multiclient.go:46
↓ 5 callersMethodAsyncCall
AsyncCall sends a message and receives reply asynchronously. If the is []byte or *[]byte type, it can automatically fill in the body codec name.
session.go:138
↓ 5 callersMethodClose
Close closes the connection socket. Any blocked Read or Write operations will be unblocked and return errors.
socket/socket.go:87
↓ 5 callersMethodDelete
Delete deletes the Socket for a id.
socket/socket_hub.go:83
↓ 5 callersMethodDial
Dial connects with the peer of the destination address.
mixer/websocket/client.go:55
↓ 5 callersFunctionDialConfig
DialConfig opens a new client connection to a WebSocket with a config.
mixer/websocket/websocket/client.go:81
↓ 5 callersFunctionInfof
Infof logs a message using INFO as log level.
log.go:351
↓ 5 callersMethodNewFrameWriter
(payloadType byte)
mixer/websocket/websocket/websocket.go:152
↓ 5 callersFunctionNewMessage
NewMessage creates a new *message. NOTE: NewBody is only for reading form connection; settings are only for writing to connection.
socket/message.go:181
↓ 5 callersMethodOutput
Output returns writed message.
context.go:105
↓ 5 callersMethodPreSend
PreSend temporarily sends message when the session is just builded, do not execute other plugins. NOTE: Cannot be called during the Non-PostDial and N
session.go:68
↓ 5 callersMethodReadByte
ReadByte reads and returns a single byte. If no byte is available, returns an error.
utils/bufio_reader.go:125
↓ 5 callersMethodReadMessage
ReadMessage reads header and body from the connection. NOTE: must be safe for concurrent use by multiple goroutines.
socket/socket.go:76
↓ 5 callersMethodReceive
Receive receives single frame from ws, unmarshaled by cd.Unmarshal and stores in v. The whole frame payload is read to an in-memory buffer; max size o
mixer/websocket/websocket/websocket.go:326
↓ 5 callersMethodSend
Send sends v marshaled by cd.Marshal as single frame to ws.
mixer/websocket/websocket/websocket.go:304
↓ 5 callersMethodSetBodyCodec
SetBodyCodec sets the body codec type id.
socket/message.go:111
↓ 5 callersFunctionToJSONStr
ToJSONStr converts the string to json string.
utils/json_str.go:9
↓ 5 callersMethodWriteMessage
WriteMessage writes header and body to the connection. NOTE: must be safe for concurrent use by multiple goroutines.
socket/socket.go:73
↓ 5 callersMethodWriteRune
WriteRune writes a single Unicode code point, returning the number of bytes written and any error.
utils/bufio_writer.go:109
↓ 5 callersFunctiondecodeArg
(dst, src []byte, decodePlus bool)
utils/args.go:458
↓ 5 callersMethodgetConn
()
session.go:339
↓ 5 callersFunctionnewPluginSingleContainer
newPluginSingleContainer new a plugin container.
plugin.go:254
↓ 5 callersMethodputContext
(ctx *handlerCtx, withWg bool)
peer.go:451
↓ 5 callersMethodset
set sets a *session.
session.go:958
↓ 5 callersFunctionsetIntField
(val string, bitSize int, field reflect.Value)
codec/form_codec.go:244
↓ 5 callersFunctionsetUintField
(val string, bitSize int, field reflect.Value)
codec/form_codec.go:255
↓ 4 callersFunctionAnywayGo
AnywayGo similar to go func, but concurrent resources are limited.
helper.go:62
↓ 4 callersMethodContextAge
ContextAge returns CALL or PUSH context max age.
session.go:410
↓ 4 callersMethodDone
Done returns the chan that indicates whether it has been completed.
context.go:797
↓ 4 callersMethodGetAll
GetAll returns all activated plugins.
plugin.go:290
↓ 4 callersMethodHost
Host returns the address's host(ip).
helper.go:330
↓ 4 callersMethodID
ID returns the session id.
session.go:312
↓ 4 callersMethodID
ID returns the socket id.
socket/socket.go:95
↓ 4 callersMethodIncr
Incr increases 1. NOTE: non-concurrent security.
utils/count_str.go:30
↓ 4 callersMethodListenAndServe
ListenAndServe listens on the TCP network address addr and then calls Serve with handler to handle requests on incoming connections. Accepted connecti
mixer/websocket/server.go:87
↓ 4 callersFunctionNewJSONProtoFunc
NewJSONProtoFunc is creation function of JSON socket protocol. Message data format: {length bytes}{xfer_pipe length byte}{xfer_pipe bytes}{JSON byte
proto/jsonproto/jsonproto.go:38
↓ 4 callersFunctionNewPbSubProtoFunc
NewPbSubProtoFunc() is creation function of PROTOBUF socket protocol.
mixer/websocket/pbSubProto/pbSubProto.go:14
↓ 4 callersFunctionNewPing
NewPing returns a heartbeat(CALL or PUSH) sender plugin.
plugin/heartbeat/ping.go:34
↓ 4 callersFunctionNewPong
NewPong returns a heartbeat receiver plugin.
plugin/heartbeat/pong.go:28
↓ 4 callersFunctionParseUint
ParseUint parses uint from buf.
utils/bytesconv.go:149
↓ 4 callersMethodPayloadType
PayloadType returns payload type.
mixer/websocket/websocket/websocket.go:126
↓ 4 callersMethodPluginContainer
PluginContainer returns the global plugin container.
peer.go:50
↓ 4 callersMethodPort
Port returns the address's port.
helper.go:335
↓ 4 callersMethodPreReceive
PreReceive temporarily receives message when the session is just builded, do not execute other plugins. NOTE: Cannot be called during the Non-PostDial
session.go:75
↓ 4 callersMethodReadHandshake
(buf *bufio.Reader, req *http.Request)
mixer/websocket/websocket/hybi.go:490
↓ 4 callersMethodServeConn
ServeConn serves the connection and returns a session. NOTE: Not support automatically redials after disconnection; Not check TLS; Execute the PostAcc
peer.go:84
↓ 4 callersMethodSetUint
SetUint sets uint value for the given key.
utils/args.go:243
↓ 4 callersMethodSetUnknownCall
SetUnknownCall sets the default handler, which is called when no handler for CALL is found.
peer.go:68
↓ 4 callersMethodSetWriteDeadline
SetWriteDeadline sets the deadline for future Write calls and any currently-blocked Write call. Even if write times out, it may return n > 0, indicati
socket/socket.go:70
↓ 4 callersMethodSwap
Swap returns custom data swap of the session(socket).
session.go:45
↓ 4 callersMethodVisitAll
VisitAll calls f for each existing arg. f must not retain references to key and value after returning. Make key and/or value copies if you need stori
utils/args.go:63
↓ 4 callersMethodWarnf
Warnf logs a message using WARNING as log level.
log.go:67
↓ 4 callersFunctionWithNewBody
WithNewBody resets the function of getting body. NOTE: newBodyFunc is only for reading form connection.
socket/message.go:529
↓ 4 callersMethodcheck
()
config.go:79
↓ 4 callersMethodcloneAndAppendMiddle
(plugins ...Plugin)
plugin.go:175
↓ 4 callersFunctionenablePrintRunLog
()
session.go:1022
↓ 4 callersMethodfixStatus
(stat *erpc.Status)
plugin/binder/binder.go:671
↓ 4 callersFunctionhexCharUpper
(c byte)
utils/bytesconv.go:310
↓ 4 callersFunctionisStatusType
(s string)
router.go:905
↓ 4 callersMethodprintRunLog
(realIP string, costTime time.Duration, input, output Message, logType int8)
session.go:1026
↓ 4 callersMethodreg
( routerTypeName string, handlerMaker func(string, interface{}, *PluginContainer) ([]*Handler, error), ctrl
router.go:341
↓ 4 callersMethodremove
remove removes a plugin by its name.
plugin.go:295
↓ 4 callersMethodsend
(mtype byte, seq int32, serviceMethod string, body interface{}, stat *Status, setting []MessageSetting)
session.go:448
↓ 4 callersFunctionsetArg
(h []argsKV, key, value string)
utils/args.go:345
↓ 4 callersMethodtakeConn
()
plugin/overloader/overloader.go:188
↓ 4 callersFunctionupdateHeartbeatInfo
updateHeartbeatInfo updates heartbeat info of session.
plugin/heartbeat/info.go:81
↓ 4 callersFunctionwarnInvalidHandlerHooks
(plugin []Plugin)
plugin.go:685
↓ 3 callersMethodAcceptHandshake
(buf *bufio.Writer)
mixer/websocket/websocket/hybi.go:551
↓ 3 callersFunctionAcquireArgs
AcquireArgs returns an empty Args object from the pool. The returned Args may be returned to the pool with ReleaseArgs when no longer needed. This al
utils/args.go:14
↓ 3 callersFunctionAppendUint
AppendUint appends n to dst and returns the extended dst.
utils/bytesconv.go:126
↓ 3 callersMethodClose
Close closes the session.
session.go:169
↓ 3 callersMethodCountSession
CountSession returns the number of sessions.
peer.go:38
↓ 3 callersFunctionEnableLoggerLevel
EnableLoggerLevel returns if can print the level of log.
log.go:243
↓ 3 callersFunctionGet
Get returns transfer filter by id.
xfer/xfer.go:62
↓ 3 callersFunctionGetByName
GetByName returns transfer filter by name.
xfer/xfer.go:71
↓ 3 callersFunctionGetByName
GetByName returns Codec by name.
codec/codec.go:75
↓ 3 callersFunctionGetSocket
GetSocket gets a Socket from pool, and reset it.
socket/socket.go:140
↓ 3 callersMethodID
ID returns the session id.
session.go:125
← previousnext →101–200 of 1,742, ranked by callers