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
↓ 2 callers
Function
NewReadWriteCounter
NewReadWriteCounter wrap the reader and writer with counter.
utils/rw_counter.go:16
↓ 2 callers
Function
NewServer
NewServer creates a evio server.
mixer/evio/evio.go:33
↓ 2 callers
Function
NewStructProtoFunc
NewStructProtoFunc creates erpc.ProtoFunc of Thrift protocol. NOTE: The body codec must be thrift, directly encoded as a thrift.TStruct; Support th
proto/thriftproto/struct_proto.go:20
↓ 2 callers
Function
NewWsProtoFunc
NewWsProtoFunc wraps a protocol to a new websocket protocol.
mixer/websocket/proto.go:30
↓ 2 callers
Function
NewXferPipe
NewXferPipe creates a new transfer filter pipe.
xfer/xfer.go:86
↓ 2 callers
Function
Origin
Origin parses the Origin header in req. If the Origin header is not set, it returns nil and nil.
mixer/websocket/websocket/hybi.go:539
↓ 2 callers
Method
Output
Output writes log, can append time, line and so on information.
log.go:37
↓ 2 callers
Method
Pack
Pack writes the Message into the connection. NOTE: Make sure to write only once or there will be package contamination!
socket/protocol.go:38
↓ 2 callers
Method
Panicf
Panicf is equivalent to Criticalf followed by a call to panic().
log.go:55
↓ 2 callers
Method
PeekMulti
PeekMulti returns all the arg values for the given key.
utils/args.go:205
↓ 2 callers
Method
PostListen
(net.Addr)
plugin.go:50
↓ 2 callers
Method
PostReadCallBody
(ctx erpc.ReadCtx)
plugin/secure/secure.go:200
↓ 2 callers
Method
PreReadCallBody
(ctx erpc.ReadCtx)
plugin/secure/secure.go:177
↓ 2 callers
Method
PreWriteCall
(ctx erpc.WriteCtx)
plugin/secure/secure.go:144
↓ 2 callers
Method
Readed
Readed returns readed bytes length.
utils/rw_counter.go:58
↓ 2 callers
Function
Reg
Reg registers transfer filter.
xfer/xfer.go:48
↓ 2 callers
Method
RemoteAddr
RemoteAddr returns the remote network address.
session.go:385
↓ 2 callers
Method
RemoteAddr
RemoteAddr returns the remote network address.
socket/socket.go:44
↓ 2 callers
Method
ResetServiceMethod
ResetServiceMethod resets the input message service method.
context.go:75
↓ 2 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!
kcp/inherit.go:175
↓ 2 callers
Function
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:465
↓ 2 callers
Method
SetTLSConfigFromFile
SetTLSConfigFromFile sets the TLS config from file.
peer.go:46
↓ 2 callers
Method
SetUnknownPush
SetUnknownPush sets the default handler, which is called when no handler for PUSH is found.
peer.go:70
↓ 2 callers
Method
Size
()
mixer/websocket/pbSubProto/pb/payload.pb.go:190
↓ 2 callers
Method
Size
()
socket/example/pb/test.pb.go:115
↓ 2 callers
Method
Status
Status returns the message status with code, msg, cause or stack. NOTE: If it is nil and autoInit = true, assign a new object; Should use StatusOK to
socket/message.go:97
↓ 2 callers
Method
StatusOK
StatusOK returns the handle status is OK or not.
context.go:83
↓ 2 callers
Method
Timeout
(arg *string)
examples/session_age/server_test.go:40
↓ 2 callers
Method
Tracef
Tracef logs a message using TRACE as log level.
log.go:83
↓ 2 callers
Method
TrailerReader
TrailerReader returns a reader to read trailer of the frame. If it returns nil, there is no trailer in the frame.
mixer/websocket/websocket/websocket.go:133
↓ 2 callers
Method
Unpack
Unpack reads bytes from the connection to the Message. NOTE: Concurrent unsafe!
socket/protocol.go:41
↓ 2 callers
Function
WithAddMeta
WithAddMeta adds 'key=value' metadata argument. Multiple values for the same key may be added. SUGGEST: urlencoded string max len ≤ 65535!
socket/message.go:491
↓ 2 callers
Method
WriteClose
(status int)
mixer/websocket/websocket/hybi.go:308
↓ 2 callers
Method
WritePing
(b []byte)
mixer/websocket/websocket/websocket_test.go:59
↓ 2 callers
Method
WritePong
(msg []byte)
mixer/websocket/websocket/hybi.go:322
↓ 2 callers
Method
Writed
Writed returns writed bytes length.
utils/rw_counter.go:96
↓ 2 callers
Method
closeLocked
()
session.go:776
↓ 2 callers
Function
ctrlStructName
(ctype reflect.Type)
router.go:909
↓ 2 callers
Method
dialOne
dialOne dials the connection once.
dialer.go:129
↓ 2 callers
Method
elemCopy
()
plugin/heartbeat/info.go:41
↓ 2 callers
Function
encodeVarintSecure
(dAtA []byte, offset int, v uint64)
plugin/secure/secure.pb.go:110
↓ 2 callers
Function
encodeVarintTest
(dAtA []byte, offset int, v uint64)
socket/example/pb/test.pb.go:106
↓ 2 callers
Function
fixRootPath
(rootPath string)
mixer/websocket/client.go:67
↓ 2 callers
Method
getContext
(s *session, withWg bool)
peer.go:440
↓ 2 callers
Function
getMd5
Get md5 data
xfer/md5/md5.go:68
↓ 2 callers
Method
getNow
()
plugin/overloader/connlimiter.go:40
↓ 2 callers
Method
getPingRateSecond
()
plugin/heartbeat/ping.go:105
↓ 2 callers
Function
getProto
(protoFuncs []ProtoFunc, rw IOWithReadBuffer)
socket/socket.go:469
↓ 2 callers
Method
goonRead
()
session.go:260
↓ 2 callers
Method
graceCtxWait
()
session.go:300
↓ 2 callers
Function
handelHeartbeat
(sess erpc.CtxSession, peekMeta func(string) []byte)
plugin/heartbeat/pong.go:141
↓ 2 callers
Function
handlerFuncName
(v reflect.Value)
router.go:914
↓ 2 callers
Function
hasArg
(h []argsKV, key string)
utils/args.go:387
↓ 2 callers
Function
initHeartbeatInfo
(m goutil.Map, rate time.Duration)
plugin/heartbeat/info.go:64
↓ 2 callers
Method
initOptimize
()
socket/socket.go:343
↓ 2 callers
Function
isSecure
func (e *decryptPlugin) Name() string { return "decrypt" } func (e *encryptPlugin) Name() string { return "encrypt" }
plugin/secure/secure.go:131
↓ 2 callers
Function
n256setup
()
utils/color/colorable_windows.go:772
↓ 2 callers
Function
newQPSLimiter
(maxQPS int32, qpsInterval time.Duration)
plugin/overloader/qpslimiter.go:16
↓ 2 callers
Function
newSession
(t *testing.T, port uint16)
plugin/secure/secure_test.go:32
↓ 2 callers
Function
newSocket
(c net.Conn, protoFuncs []ProtoFunc)
socket/socket.go:161
↓ 2 callers
Function
newTLSConfig
(cert tls.Certificate, insecureSkipVerifyForClient ...bool)
helper.go:207
↓ 2 callers
Method
notifyClosed
()
session.go:264
↓ 2 callers
Function
parseBool
(val string)
plugin/binder/binder.go:800
↓ 2 callers
Function
parseTuple
(tuple string)
plugin/binder/binder.go:543
↓ 2 callers
Method
postAccept
PostAccept executes the defined plugins after accepting connection.
plugin.go:421
↓ 2 callers
Method
postDial
postDial executes the defined plugins after dialing.
plugin.go:396
↓ 2 callers
Method
postDisconnect
PostDisconnect executes the defined plugins after disconnection.
plugin.go:672
↓ 2 callers
Method
preDial
preDial executes the defined plugins before dialing.
plugin.go:371
↓ 2 callers
Method
readLine
(bb *utils.ByteBuffer)
proto/httproto/httproto.go:416
↓ 2 callers
Function
readMessageBegin
readMessageBegin read a message header.
proto/thriftproto/binary_proto.go:178
↓ 2 callers
Method
recordCost
()
context.go:413
↓ 2 callers
Method
serveWebSocket
(w http.ResponseWriter, req *http.Request)
mixer/websocket/websocket/server.go:73
↓ 2 callers
Function
setFloatField
(val string, bitSize int, field reflect.Value)
codec/form_codec.go:277
↓ 2 callers
Method
startTicker
()
plugin/overloader/qpslimiter.go:65
↓ 2 callers
Function
toHSV
(rgb int)
utils/color/colorable_windows.go:699
↓ 2 callers
Function
toServiceMethods
toServiceMethods maps struct(func) name to service methods.
router.go:76
↓ 2 callers
Function
unifyLocalhost
(host *string)
graceful.go:177
↓ 2 callers
Method
unpack
(m erpc.Message, bb *utils.ByteBuffer)
proto/httproto/httproto.go:337
↓ 2 callers
Method
update
(ctx erpc.PreCtx)
plugin/heartbeat/ping.go:225
↓ 2 callers
Method
update
(ctx erpc.ReadCtx)
plugin/heartbeat/pong.go:114
↓ 2 callers
Function
writeMessageBegin
writeMessageBegin write a message header to the wire.
proto/thriftproto/binary_proto.go:164
↓ 1 callers
Method
AcceptHandshake
AcceptHandshake accepts the client handshake request and sends handshake response back to client.
mixer/websocket/websocket/websocket.go:114
↓ 1 callers
Method
AppendBytes
AppendBytes appends query string to dst and returns the extended dst.
utils/args.go:109
↓ 1 callers
Method
AppendFrom
AppendFrom appends transfer filters from a *XferPipe.
xfer/xfer.go:108
↓ 1 callers
Function
AppendHTMLEscape
AppendHTMLEscape appends html-escaped s to dst and returns the extended dst.
utils/bytesconv.go:18
↓ 1 callers
Method
AppendLeft
AppendLeft appends plugins on the left side of the pluginContainer.
plugin.go:194
↓ 1 callers
Method
AppendRight
AppendRight appends plugins on the right side of the pluginContainer.
plugin.go:200
↓ 1 callers
Method
AsyncCall
AsyncCall sends a message and receives reply asynchronously. NOTE: If the args is []byte or *[]byte type, it can automatically fill in the body codec
session.go:665
↓ 1 callers
Method
AsyncCall
AsyncCall sends a message and receives reply asynchronously. If the arg is []byte or *[]byte type, it can automatically fill in the body codec name.
mixer/multiclient/multiclient.go:67
↓ 1 callers
Method
Black
(msg interface{}, styles ...string)
utils/color/color.go:140
↓ 1 callers
Method
BlackBg
(msg interface{}, styles ...string)
utils/color/color.go:176
↓ 1 callers
Method
Blue
(msg interface{}, styles ...string)
utils/color/color.go:156
↓ 1 callers
Method
BlueBg
(msg interface{}, styles ...string)
utils/color/color.go:192
↓ 1 callers
Method
Bold
(msg interface{}, styles ...string)
utils/color/color.go:212
↓ 1 callers
Method
Buffered
Buffered returns the number of bytes that have been written into the current buffer.
utils/bufio_writer.go:65
↓ 1 callers
Method
Close
Close closes the server.
mixer/websocket/server.go:110
↓ 1 callers
Method
Close
Close implements the io.Closer interface.
mixer/websocket/websocket/websocket.go:234
↓ 1 callers
Method
Config
Config returns the WebSocket config.
mixer/websocket/websocket/websocket.go:291
↓ 1 callers
Method
Context
Context returns the message handling context.
socket/message.go:60
↓ 1 callers
Method
ControlFD
ControlFD invokes f on the underlying connection's file descriptor or handle. The file descriptor fd is guaranteed to remain valid while f executes bu
session.go:52
← previous
next →
301–400 of 1,742, ranked by callers