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
PreDial
(localAddr net.Addr, remoteAddr string)
plugin.go:55
↓ 1 callers
Method
PreHandshake
(r *http.Request)
mixer/websocket/server.go:208
↓ 1 callers
Method
PreNewPeer
(*PeerConfig, *PluginContainer)
plugin.go:35
↓ 1 callers
Method
PreReadCallBody
(ReadCtx)
plugin.go:110
↓ 1 callers
Method
PreReadHeader
(PreCtx)
plugin.go:100
↓ 1 callers
Method
PreReadPushBody
(ReadCtx)
plugin.go:125
↓ 1 callers
Method
PreReadReplyBody
(ReadCtx)
plugin.go:140
↓ 1 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-PostDi
session.go:507
↓ 1 callers
Method
PreWriteCall
(WriteCtx)
plugin.go:70
↓ 1 callers
Method
PreWritePush
(WriteCtx)
plugin.go:90
↓ 1 callers
Method
PreWriteReply
(WriteCtx)
plugin.go:80
↓ 1 callers
Method
Random
Random gets a Socket randomly. If third returned arg is false, mean no Socket is exist.
socket/socket_hub.go:68
↓ 1 callers
Method
Raw
Raw returns the raw net.Conn
socket/socket.go:101
↓ 1 callers
Method
Raw
Raw returns the raw net.Conn
socket/socket.go:172
↓ 1 callers
Method
RawLocked
RawLocked returns the raw net.Conn, can be called in ProtoFunc. NOTE: Make sure the external is locked before calling
socket/socket.go:110
↓ 1 callers
Method
ReadField1
(ctx context.Context, iprot thrift.TProtocol)
proto/thriftproto/gen-go/thriftproto_test/test.go:74
↓ 1 callers
Method
ReadHandshake
ReadHandshake reads handshake request message from client. Returns http response code and error if any.
mixer/websocket/websocket/websocket.go:110
↓ 1 callers
Function
Red
(msg interface{}, styles ...string)
utils/color/color.go:252
↓ 1 callers
Method
Red
(msg interface{}, styles ...string)
utils/color/color.go:144
↓ 1 callers
Method
RedBg
(msg interface{}, styles ...string)
utils/color/color.go:180
↓ 1 callers
Method
RedialTimes
RedialTimes returns the redial times.
dialer.go:77
↓ 1 callers
Function
Reg
Reg registers a md5 checker filter for transfer.
xfer/md5/md5.go:13
↓ 1 callers
Method
Reply
Reply returns the call reply. NOTE: Inside, <-Done() is automatically called and blocked, until the call is completed!
context.go:695
↓ 1 callers
Method
ReplyBodyCodec
ReplyBodyCodec initializes and returns the reply message body codec id.
context.go:546
↓ 1 callers
Method
Request
Request returns the http request upgraded to the WebSocket. It is nil for client side.
mixer/websocket/websocket/websocket.go:295
↓ 1 callers
Method
Reset
Reset clears query args.
utils/args.go:49
↓ 1 callers
Method
RouterTypeName
RouterTypeName returns the router type name.
router.go:964
↓ 1 callers
Method
Seq
Seq returns the message sequence.
socket/message.go:78
↓ 1 callers
Function
ServerStatus2
(ctx erpc.PushCtx, arg *string)
examples/route_func/client_test.go:61
↓ 1 callers
Method
ServiceMethod
ServiceMethod returns the serviec method. SUGGEST: max len ≤ 255!
socket/message.go:87
↓ 1 callers
Method
SessionAge
SessionAge returns the session max age.
session.go:390
↓ 1 callers
Method
SetBytesKV
SetBytesKV sets 'key=value' argument.
utils/args.go:186
↓ 1 callers
Method
SetBytesV
SetBytesV sets 'key=value' argument.
utils/args.go:181
↓ 1 callers
Method
SetErrorFunc
SetErrorFunc sets the binding or balidating error function. NOTE: If fn=nil, set as default.
plugin/binder/binder.go:107
↓ 1 callers
Method
SetID
SetID sets the socket id.
socket/socket.go:97
↓ 1 callers
Method
SetID
SetID sets the socket id.
socket/socket.go:287
↓ 1 callers
Function
SetInherited
SetInherited adds the files and envs to be inherited by the new process. Notes: Only for reboot! Windows system are not supported!
quic/inherit.go:32
↓ 1 callers
Method
SetInherited
SetInherited adds the files and envs to be inherited by the new process. Notes: Only for reboot! Windows system are not supported!
quic/inherit.go:176
↓ 1 callers
Method
SetKeepAlive
SetKeepAlive sets whether the operating system should send keepalive messages on the connection.
socket/socket.go:351
↓ 1 callers
Method
SetKeepAlivePeriod
SetKeepAlivePeriod sets period between keep alives.
socket/socket.go:353
↓ 1 callers
Function
SetMessageSizeLimit
SetMessageSizeLimit sets max message size. If maxSize<=0, set it to 1GB.
socket/message.go:560
↓ 1 callers
Method
SetMeta
SetMeta sets the header metadata 'key=value' for reply message.
context.go:114
↓ 1 callers
Method
SetNoDelay
SetNoDelay controls whether the operating system should delay message transmission in hopes of sending fewer messages (Nagle's algorithm). The defaul
socket/socket.go:368
↓ 1 callers
Method
SetRate
SetRate sets heartbeat rate.
plugin/heartbeat/ping.go:45
↓ 1 callers
Method
SetReadBuffer
SetReadBuffer sets the size of the operating system's receive buffer associated with the connection.
socket/socket.go:358
↓ 1 callers
Function
SetShutdown
SetShutdown sets the function which is called after the process shutdown, and the time-out period for the process shutdown. If 0<=timeout<5s, automati
graceful.go:100
↓ 1 callers
Method
SetTLSConfig
SetTLSConfig sets the TLS config.
peer.go:176
↓ 1 callers
Method
SetWriteBuffer
SetWriteBuffer sets the size of the operating system's transmit buffer associated with the connection.
socket/socket.go:361
↓ 1 callers
Method
Size
()
plugin/secure/secure.pb.go:119
↓ 1 callers
Method
Size
()
codec/empty.pb.go:91
↓ 1 callers
Method
Size
()
examples/bench/msg/benchmark.pb.go:739
↓ 1 callers
Method
Stats
Stats returns the current session pool stats.
mixer/multiclient/multiclient.go:61
↓ 1 callers
Method
Strikeout
(msg interface{}, styles ...string)
utils/color/color.go:236
↓ 1 callers
Method
Swap
Swap returns custom data swap of context.
context.go:41
↓ 1 callers
Function
ThriftMarshal
ThriftMarshal returns the Thriftbuf encoding of v.
codec/thrift_codec.go:65
↓ 1 callers
Function
ThriftUnmarshal
ThriftUnmarshal parses the Thriftbuf-encoded data and stores the result in the value pointed to by v.
codec/thrift_codec.go:81
↓ 1 callers
Function
TryOptimize
TryOptimize attempts to set KeepAlive, KeepAlivePeriod, ReadBuffer, WriteBuffer or NoDelay.
socket/socket.go:373
↓ 1 callers
Method
Underline
(msg interface{}, styles ...string)
utils/color/color.go:224
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
mixer/websocket/pbSubProto/pb/payload.pb.go:240
↓ 1 callers
Method
Unmarshal
(dAtA []byte)
socket/example/pb/test.pb.go:143
↓ 1 callers
Method
White
(msg interface{}, styles ...string)
utils/color/color.go:168
↓ 1 callers
Method
WhiteBg
(msg interface{}, styles ...string)
utils/color/color.go:204
↓ 1 callers
Function
WithAcceptSecureMeta
WithAcceptSecureMeta requires the peer to encrypt the replying body. Note: requires that the secure plugin has been registered!
plugin/secure/secure.go:80
↓ 1 callers
Function
WithBody
WithBody sets the body object.
socket/message.go:520
↓ 1 callers
Function
WithNothing
WithNothing nothing to do.
socket/message.go:462
↓ 1 callers
Function
WithSecureMeta
WithSecureMeta encrypts the body of the current message. Note: requires that the secure plugin has been registered!
plugin/secure/secure.go:72
↓ 1 callers
Function
WithServiceMethod
WithServiceMethod sets the message service method. SUGGEST: max len ≤ 255!
socket/message.go:475
↓ 1 callers
Function
WithSetMeta
WithSetMeta sets 'key=value' metadata argument. SUGGEST: urlencoded string max len ≤ 65535!
socket/message.go:499
↓ 1 callers
Method
WriteClose
(status int)
mixer/websocket/websocket/websocket.go:157
↓ 1 callers
Function
Yellow
(msg interface{}, styles ...string)
utils/color/color.go:260
↓ 1 callers
Method
Yellow
(msg interface{}, styles ...string)
utils/color/color.go:152
↓ 1 callers
Method
YellowBg
(msg interface{}, styles ...string)
utils/color/color.go:188
↓ 1 callers
Method
activeListeners
activeListeners returns a snapshot copy of the active listeners.
quic/inherit.go:142
↓ 1 callers
Method
activeListeners
activeListeners returns a snapshot copy of the active listeners.
kcp/inherit.go:141
↓ 1 callers
Method
addFields
(parentIndexPath []int, t reflect.Type, v reflect.Value)
plugin/binder/binder.go:183
↓ 1 callers
Function
addPeer
(p *peer)
graceful.go:37
↓ 1 callers
Method
appendLeft
appendLeft appends plugins on the left side of the pluginContainer.
plugin.go:261
↓ 1 callers
Method
appendRight
appendRight appends plugins on the right side of the pluginContainer.
plugin.go:269
↓ 1 callers
Method
backgroundAttr
()
utils/color/colorable_windows.go:647
↓ 1 callers
Method
binaryPack
(m erpc.Message)
proto/thriftproto/binary_proto.go:82
↓ 1 callers
Method
binaryUnpack
(m erpc.Message)
proto/thriftproto/binary_proto.go:122
↓ 1 callers
Method
bindAndValidate
(structValue reflect.Value, meta *utils.Args, swap goutil.Map)
plugin/binder/binder.go:307
↓ 1 callers
Method
bindCall
(header Header)
context.go:446
↓ 1 callers
Method
bindPush
(header Header)
context.go:382
↓ 1 callers
Method
bindReply
(header Header)
context.go:583
↓ 1 callers
Function
bodyLogBytes
(message Message)
session.go:1091
↓ 1 callers
Method
calibrate
()
utils/bytebuffer.go:193
↓ 1 callers
Method
cancel
(reason string)
context.go:850
↓ 1 callers
Method
check
()
xfer/xfer.go:114
↓ 1 callers
Function
checkMessageSize
(messageSize uint32)
socket/message.go:568
↓ 1 callers
Method
clean
()
context.go:203
↓ 1 callers
Function
convertAssign
(dest reflect.Value, src []string)
plugin/binder/binder.go:681
↓ 1 callers
Function
copyArgs
(dst, src []argsKV)
utils/args.go:306
↓ 1 callers
Function
decodeArgAppend
(dst, src []byte, decodePlus bool)
utils/args.go:462
↓ 1 callers
Function
deletePeer
(p *peer)
graceful.go:43
↓ 1 callers
Function
dialWithDialer
(dialer *net.Dialer, config *Config)
mixer/websocket/websocket/dial.go:12
↓ 1 callers
Method
dist
(b hsv)
utils/color/colorable_windows.go:686
↓ 1 callers
Function
doPrintPid
()
helper.go:80
↓ 1 callers
Method
doSend
(output Message)
session.go:470
↓ 1 callers
Method
fieldsForBinding
(structElem reflect.Value)
plugin/binder/binder.go:293
← previous
next →
501–600 of 1,742, ranked by callers