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
↓ 7 callers
Method
checkStatus
(checkList ...int32)
session.go:246
↓ 7 callers
Function
encodeVarintPayload
(dAtA []byte, offset int, v uint64)
mixer/websocket/pbSubProto/pb/payload.pb.go:181
↓ 7 callers
Function
messageLogBytes
(message Message, printDetail bool)
session.go:1068
↓ 7 callers
Function
newHybiConn
newHybiConn creates a new WebSocket connection speaking hybi draft protocol.
mixer/websocket/websocket/hybi.go:335
↓ 7 callers
Function
newPluginContainer
newPluginContainer new a plugin container.
plugin.go:164
↓ 6 callers
Function
Debugf
Debugf logs a message using DEBUG as log level.
log.go:361
↓ 6 callers
Function
Get
Get returns Codec by id.
codec/codec.go:66
↓ 6 callers
Method
Health
Health checks if the session is usable.
session.go:135
↓ 6 callers
Method
Name
Name returns name.
plugin/heartbeat/ping.go:51
↓ 6 callers
Function
NewJSONSubProtoFunc
NewJSONSubProtoFunc is creation function of JSON socket protocol.
mixer/websocket/jsonSubProto/jsonSubProto.go:17
↓ 6 callers
Function
Printf
************ global logger functions ************ Printf formats according to a format specifier and writes to standard output. It returns the number
log.go:273
↓ 6 callers
Method
Range
Range calls f sequentially for each XferFilter present in the XferPipe. If f returns false, range stops the iteration.
xfer/xfer.go:155
↓ 6 callers
Method
RouteCallFunc
RouteCallFunc registers CALL handler, and returns the path.
peer.go:62
↓ 6 callers
Method
RoutePushFunc
RoutePushFunc registers PUSH handler, and returns the path.
peer.go:66
↓ 6 callers
Method
SetTLSConfig
SetTLSConfig sets the TLS config.
peer.go:44
↓ 6 callers
Method
SubRoute
SubRoute adds handler group.
peer.go:58
↓ 6 callers
Function
Warnf
Warnf logs a message using WARNING as log level.
log.go:331
↓ 6 callers
Function
appendArg
(args []argsKV, key, value string)
utils/args.go:361
↓ 6 callers
Function
minus
(a int, b int)
socket/protocol.go:271
↓ 6 callers
Function
strconvErr
(err error)
plugin/binder/binder.go:808
↓ 6 callers
Method
takeTotalQPS
()
plugin/overloader/overloader.go:203
↓ 5 callers
Method
Addr
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 callers
Method
Addr
Addr returns the address.
mixer/multiclient/multiclient.go:46
↓ 5 callers
Method
AsyncCall
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 callers
Method
Close
Close closes the connection socket. Any blocked Read or Write operations will be unblocked and return errors.
socket/socket.go:87
↓ 5 callers
Method
Delete
Delete deletes the Socket for a id.
socket/socket_hub.go:83
↓ 5 callers
Method
Dial
Dial connects with the peer of the destination address.
mixer/websocket/client.go:55
↓ 5 callers
Function
DialConfig
DialConfig opens a new client connection to a WebSocket with a config.
mixer/websocket/websocket/client.go:81
↓ 5 callers
Function
Infof
Infof logs a message using INFO as log level.
log.go:351
↓ 5 callers
Method
NewFrameWriter
(payloadType byte)
mixer/websocket/websocket/websocket.go:152
↓ 5 callers
Function
NewMessage
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 callers
Method
Output
Output returns writed message.
context.go:105
↓ 5 callers
Method
PreSend
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 callers
Method
ReadByte
ReadByte reads and returns a single byte. If no byte is available, returns an error.
utils/bufio_reader.go:125
↓ 5 callers
Method
ReadMessage
ReadMessage reads header and body from the connection. NOTE: must be safe for concurrent use by multiple goroutines.
socket/socket.go:76
↓ 5 callers
Method
Receive
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 callers
Method
Send
Send sends v marshaled by cd.Marshal as single frame to ws.
mixer/websocket/websocket/websocket.go:304
↓ 5 callers
Method
SetBodyCodec
SetBodyCodec sets the body codec type id.
socket/message.go:111
↓ 5 callers
Function
ToJSONStr
ToJSONStr converts the string to json string.
utils/json_str.go:9
↓ 5 callers
Method
WriteMessage
WriteMessage writes header and body to the connection. NOTE: must be safe for concurrent use by multiple goroutines.
socket/socket.go:73
↓ 5 callers
Method
WriteRune
WriteRune writes a single Unicode code point, returning the number of bytes written and any error.
utils/bufio_writer.go:109
↓ 5 callers
Function
decodeArg
(dst, src []byte, decodePlus bool)
utils/args.go:458
↓ 5 callers
Method
getConn
()
session.go:339
↓ 5 callers
Function
newPluginSingleContainer
newPluginSingleContainer new a plugin container.
plugin.go:254
↓ 5 callers
Method
putContext
(ctx *handlerCtx, withWg bool)
peer.go:451
↓ 5 callers
Method
set
set sets a *session.
session.go:958
↓ 5 callers
Function
setIntField
(val string, bitSize int, field reflect.Value)
codec/form_codec.go:244
↓ 5 callers
Function
setUintField
(val string, bitSize int, field reflect.Value)
codec/form_codec.go:255
↓ 4 callers
Function
AnywayGo
AnywayGo similar to go func, but concurrent resources are limited.
helper.go:62
↓ 4 callers
Method
ContextAge
ContextAge returns CALL or PUSH context max age.
session.go:410
↓ 4 callers
Method
Done
Done returns the chan that indicates whether it has been completed.
context.go:797
↓ 4 callers
Method
GetAll
GetAll returns all activated plugins.
plugin.go:290
↓ 4 callers
Method
Host
Host returns the address's host(ip).
helper.go:330
↓ 4 callers
Method
ID
ID returns the session id.
session.go:312
↓ 4 callers
Method
ID
ID returns the socket id.
socket/socket.go:95
↓ 4 callers
Method
Incr
Incr increases 1. NOTE: non-concurrent security.
utils/count_str.go:30
↓ 4 callers
Method
ListenAndServe
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 callers
Function
NewJSONProtoFunc
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 callers
Function
NewPbSubProtoFunc
NewPbSubProtoFunc() is creation function of PROTOBUF socket protocol.
mixer/websocket/pbSubProto/pbSubProto.go:14
↓ 4 callers
Function
NewPing
NewPing returns a heartbeat(CALL or PUSH) sender plugin.
plugin/heartbeat/ping.go:34
↓ 4 callers
Function
NewPong
NewPong returns a heartbeat receiver plugin.
plugin/heartbeat/pong.go:28
↓ 4 callers
Function
ParseUint
ParseUint parses uint from buf.
utils/bytesconv.go:149
↓ 4 callers
Method
PayloadType
PayloadType returns payload type.
mixer/websocket/websocket/websocket.go:126
↓ 4 callers
Method
PluginContainer
PluginContainer returns the global plugin container.
peer.go:50
↓ 4 callers
Method
Port
Port returns the address's port.
helper.go:335
↓ 4 callers
Method
PreReceive
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 callers
Method
ReadHandshake
(buf *bufio.Reader, req *http.Request)
mixer/websocket/websocket/hybi.go:490
↓ 4 callers
Method
ServeConn
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 callers
Method
SetUint
SetUint sets uint value for the given key.
utils/args.go:243
↓ 4 callers
Method
SetUnknownCall
SetUnknownCall sets the default handler, which is called when no handler for CALL is found.
peer.go:68
↓ 4 callers
Method
SetWriteDeadline
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 callers
Method
Swap
Swap returns custom data swap of the session(socket).
session.go:45
↓ 4 callers
Method
VisitAll
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 callers
Method
Warnf
Warnf logs a message using WARNING as log level.
log.go:67
↓ 4 callers
Function
WithNewBody
WithNewBody resets the function of getting body. NOTE: newBodyFunc is only for reading form connection.
socket/message.go:529
↓ 4 callers
Method
check
()
config.go:79
↓ 4 callers
Method
cloneAndAppendMiddle
(plugins ...Plugin)
plugin.go:175
↓ 4 callers
Function
enablePrintRunLog
()
session.go:1022
↓ 4 callers
Method
fixStatus
(stat *erpc.Status)
plugin/binder/binder.go:671
↓ 4 callers
Function
hexCharUpper
(c byte)
utils/bytesconv.go:310
↓ 4 callers
Function
isStatusType
(s string)
router.go:905
↓ 4 callers
Method
printRunLog
(realIP string, costTime time.Duration, input, output Message, logType int8)
session.go:1026
↓ 4 callers
Method
reg
( routerTypeName string, handlerMaker func(string, interface{}, *PluginContainer) ([]*Handler, error), ctrl
router.go:341
↓ 4 callers
Method
remove
remove removes a plugin by its name.
plugin.go:295
↓ 4 callers
Method
send
(mtype byte, seq int32, serviceMethod string, body interface{}, stat *Status, setting []MessageSetting)
session.go:448
↓ 4 callers
Function
setArg
(h []argsKV, key, value string)
utils/args.go:345
↓ 4 callers
Method
takeConn
()
plugin/overloader/overloader.go:188
↓ 4 callers
Function
updateHeartbeatInfo
updateHeartbeatInfo updates heartbeat info of session.
plugin/heartbeat/info.go:81
↓ 4 callers
Function
warnInvalidHandlerHooks
(plugin []Plugin)
plugin.go:685
↓ 3 callers
Method
AcceptHandshake
(buf *bufio.Writer)
mixer/websocket/websocket/hybi.go:551
↓ 3 callers
Function
AcquireArgs
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 callers
Function
AppendUint
AppendUint appends n to dst and returns the extended dst.
utils/bytesconv.go:126
↓ 3 callers
Method
Close
Close closes the session.
session.go:169
↓ 3 callers
Method
CountSession
CountSession returns the number of sessions.
peer.go:38
↓ 3 callers
Function
EnableLoggerLevel
EnableLoggerLevel returns if can print the level of log.
log.go:243
↓ 3 callers
Function
Get
Get returns transfer filter by id.
xfer/xfer.go:62
↓ 3 callers
Function
GetByName
GetByName returns transfer filter by name.
xfer/xfer.go:71
↓ 3 callers
Function
GetByName
GetByName returns Codec by name.
codec/codec.go:75
↓ 3 callers
Function
GetSocket
GetSocket gets a Socket from pool, and reset it.
socket/socket.go:140
↓ 3 callers
Method
ID
ID returns the session id.
session.go:125
← previous
next →
101–200 of 1,742, ranked by callers