MCPcopy Create free account

hub / github.com/andeya/erpc / functions

Functions1,742 in github.com/andeya/erpc

↓ 283 callersMethodErrorf
Errorf logs a message using ERROR as log level.
log.go:63
↓ 157 callersMethodString
String returns printing message information.
socket/message.go:63
↓ 79 callersMethodWrite
Write writes data to the connection. Write can be made to time out and return an Error with Timeout() == true after a fixed time limit; see SetDeadlin
socket/socket.go:84
↓ 77 callersMethodClose
Close closes peer.
peer.go:36
↓ 73 callersMethodPrintf
Printf formats according to a format specifier and writes to standard output. It returns the number of bytes written and any write error encountered.
log.go:47
↓ 68 callersMethodFatalf
Fatalf is equivalent to Criticalf followed by a call to os.Exit(1).
log.go:51
↓ 66 callersMethodStatus
Status returns the handle status.
context.go:85
↓ 63 callersMethodCall
Call sends a message and receives reply. NOTE: If the args is []byte or *[]byte type, it can automatically fill in the body codec name; If the session
session.go:149
↓ 54 callersMethodDial
Dial connects with the peer of the destination address.
peer.go:78
↓ 50 callersFunctionlazyLoggerOutput
(targetLevel LoggerLevel, getMsg func() string)
log.go:262
↓ 50 callersFunctionloggerOutput
(loggerLevel LoggerLevel, format string, a ...interface{})
log.go:255
↓ 48 callersMethodGet
Get returns new byte buffer with zero length. The byte buffer may be returned to the pool via Put after the use in order to minimize GC overhead.
utils/bytebuffer.go:160
↓ 48 callersMethodName
()
plugin.go:30
↓ 42 callersMethodWriteString
WriteString appends s to ByteBuffer.B.
utils/bytebuffer.go:87
↓ 39 callersMethodError
()
mixer/websocket/websocket/client.go:21
↓ 39 callersMethodListenAndServe
ListenAndServe turns on the listening service.
peer.go:76
↓ 37 callersMethodXferPipe
XferPipe transfer filter pipe, handlers from outer-most to inner-most. SUGGEST: The length can not be bigger than 255!
socket/message.go:48
↓ 36 callersMethodMeta
Meta returns the metadata. SUGGEST: urlencoded string max len ≤ 65535!
socket/message.go:102
↓ 36 callersMethodRouteCall
RouteCall registers CALL handlers, and returns the paths.
peer.go:60
↓ 35 callersMethodSet
Set sets 'key=value' argument.
utils/args.go:171
↓ 33 callersMethodServiceMethod
ServiceMethod returns the input message service method.
context.go:73
↓ 32 callersMethodFlush
Flush writes any buffered log to the underlying io.Writer.
log.go:39
↓ 31 callersMethodInfof
Infof logs a message using INFO as log level.
log.go:75
↓ 31 callersMethodRead
Read reads data from the connection. Read can be made to time out and return an Error with Timeout() == true after a fixed time limit; see SetDeadline
socket/socket.go:80
↓ 30 callersFunctionsovBenchmark
(x uint64)
examples/bench/msg/benchmark.pb.go:843
↓ 29 callersFunctionencodeVarintBenchmark
(dAtA []byte, offset int, v uint64)
examples/bench/msg/benchmark.pb.go:730
↓ 26 callersFunctionErrorf
Errorf logs a message using ERROR as log level.
log.go:321
↓ 26 callersMethodRemoteAddr
RemoteAddr returns the remote network address.
session.go:43
↓ 26 callersMethodReset
Reset reset net.Conn and ProtoFunc.
socket/socket.go:99
↓ 25 callersMethodLen
Len returns total length of the frame, including header and trailer.
mixer/websocket/websocket/websocket.go:136
↓ 25 callersFunctionouter
(n string)
utils/color/color.go:100
↓ 22 callersMethodWriteByte
WriteByte appends the byte c to the buffer. The purpose of this function is bytes.Buffer compatibility. The function always returns nil.
utils/bytebuffer.go:81
↓ 21 callersMethodDone
Done returns the chan that indicates whether it has been completed.
context.go:690
↓ 21 callersMethodMarshal
Marshal returns the encoding of v.
codec/codec.go:29
↓ 21 callersMethodSetBody
SetBody sets the body object.
socket/message.go:115
↓ 20 callersMethodMtype
Mtype returns the message type, such as CALL, REPLY, PUSH.
socket/message.go:82
↓ 20 callersMethodSession
Session returns the session.
context.go:35
↓ 19 callersMethodNetwork
Network returns the network.
dialer.go:52
↓ 19 callersMethodPeekMeta
PeekMeta peeks the header metadata for the input message.
context.go:64
↓ 19 callersMethodSetMtype
Mtype sets the message type, such as CALL, REPLY, PUSH.
socket/message.go:84
↓ 19 callersMethodSetServiceMethod
SetServiceMethod sets the serviec method. SUGGEST: max len ≤ 255!
socket/message.go:90
↓ 18 callersMethodCall
(uri string, arg interface{}, result interface{}, setting ...erpc.MessageSetting)
plugin/proxy/proxy.go:60
↓ 18 callersMethodSetSize
SetSize sets the size of message. If the size is too big, returns error. SUGGEST: For better statistics, Proto interfaces should support it.
socket/message.go:57
↓ 17 callersMethodContext
Context carries a deadline, a cancelation signal, and other values across API boundaries.
context.go:44
↓ 17 callersMethodID
ID returns codec id.
codec/codec.go:25
↓ 17 callersFunctionLazyDebugf
LazyDebugf get message from @getMsg and write to stdout when log level is met.
log.go:366
↓ 17 callersFunctionb2s
b2s converts byte slice to a string without memory allocation. See https://groups.google.com/forum/#!msg/Golang-Nuts/ENgbUzYvCuU/90yGx7GUAgAJ . Note
utils/bytesconv.go:364
↓ 17 callersFunctionnewConfig
(t *testing.T, path string)
mixer/websocket/websocket/websocket_test.go:134
↓ 16 callersMethodBodyCodec
BodyCodec returns the body codec type id.
socket/message.go:109
↓ 16 callersMethodUnmarshal
Unmarshal parses the encoded data and stores the result in the value pointed to by v.
codec/codec.go:32
↓ 15 callersMethodAdd
Add adds 'key=value' argument. Multiple values for the same key may be added.
utils/args.go:145
↓ 15 callersMethodBody
Body returns the body object.
socket/message.go:113
↓ 15 callersMethodPush
Push sends a message of TypePush type, but do not receives reply. NOTE: If the args is []byte or *[]byte type, it can automatically fill in the body c
session.go:154
↓ 15 callersMethodQueryString
QueryString returns query string for the args. The returned value is valid until the next call to Args methods.
utils/args.go:103
↓ 15 callersMethodRoutePush
RoutePush registers PUSH handlers, and returns the paths.
peer.go:64
↓ 15 callersMethodSetBodyCodec
SetBodyCodec sets the body codec for reply message.
context.go:109
↓ 15 callersMethodSwap
Swap returns custom data swap of the session(socket).
plugin/auth/auth.go:65
↓ 14 callersMethodAppend
Append appends transfer filter by id.
xfer/xfer.go:96
↓ 14 callersMethodSetSeq
SetSeq sets the message sequence.
socket/message.go:80
↓ 13 callersMethodLocalAddr
LocalAddr returns the local network address.
session.go:41
↓ 13 callersMethodPut
Put releases byte buffer obtained via Get to the pool. The buffer mustn't be accessed after returning to the pool.
utils/bytebuffer.go:179
↓ 13 callersMethodSeq
Seq returns the input message sequence.
context.go:62
↓ 13 callersFunctiontestHybiFrame
(t *testing.T, testHeader, testPayload, testMaskedPayload []byte, frameHeader *hybiFrameHeader)
mixer/websocket/websocket/hybi_test.go:292
↓ 12 callersMethodSetStatus
SetStatus the message status.
socket/message.go:99
↓ 12 callersMethodUnmarshalBody
UnmarshalBody unmarshals the encoded data to the body. NOTE: seq, mtype, uri must be setted already; if body=nil, try to use newBodyFunc to create a n
socket/message.go:127
↓ 11 callersFunctionAcquireByteBuffer
AcquireByteBuffer returns an empty byte buffer from the pool. Got byte buffer may be returned to the pool via Put call. This reduces the number of me
utils/bytebuffer.go:154
↓ 11 callersMethodBytes
Bytes returns b.B, i.e. all the bytes accumulated in the buffer. The purpose of this function is bytes.Buffer compatibility.
utils/bytebuffer.go:66
↓ 11 callersFunctionCodeText
CodeText returns the reply error code text. If the type is undefined returns 'Unknown Error'.
status.go:104
↓ 11 callersFunctionFatalf
Fatalf is equivalent to l.Criticalf followed by a call to os.Exit(1).
log.go:283
↓ 11 callersMethodSize
Size returns the size of message. SUGGEST: For better statistics, Proto interfaces should support it.
socket/message.go:52
↓ 10 callersMethodOnPack
OnPack performs filtering on packing.
xfer/xfer.go:31
↓ 10 callersMethodOnUnpack
OnUnpack performs filtering on unpacking.
xfer/xfer.go:33
↓ 10 callersMethodParse
Parse parses the given string containing query args.
utils/args.go:73
↓ 9 callersFunctionBold
(msg interface{}, styles ...string)
utils/color/color.go:320
↓ 9 callersMethodIP
IP returns the remote addr.
context.go:37
↓ 9 callersFunctionNewClient
NewClient creates a new WebSocket client connection over rwc.
mixer/websocket/websocket/client.go:42
↓ 9 callersFunctionPutMessage
PutMessage puts a *message to message pool.
socket/message.go:171
↓ 9 callersFunctionReleaseByteBuffer
ReleaseByteBuffer returns byte buffer to the pool. ByteBuffer.B mustn't be touched after returning it to the pool. Otherwise data races will occur.
utils/bytebuffer.go:174
↓ 9 callersMethodSetReadDeadline
SetReadDeadline sets the deadline for future Read calls and any currently-blocked Read call. A zero value for t means Read will not time out.
socket/socket.go:64
↓ 9 callersMethodchangeStatus
(stat int32)
session.go:233
↓ 8 callersMethodAdd
(arg *Arg)
plugin/secure/secure_test.go:26
↓ 8 callersMethodHandle
Handle registers the handler for the given rootPath. If a handler already exists for rootPath, Handle panics.
mixer/websocket/server.go:126
↓ 8 callersMethodIDs
IDs returns the id list of transfer filters.
xfer/xfer.go:130
↓ 8 callersMethodMarshalBody
MarshalBody returns the encoding of body. NOTE: when the body is a stream of bytes, no marshalling is done.
socket/message.go:121
↓ 8 callersFunctionReg
Reg registers a gzip filter for transfer.
xfer/gzip/gzip.go:31
↓ 8 callersFunctionWithContext
WithContext sets the message handling context.
socket/message.go:467
↓ 8 callersFunctionsovPayload
(x uint64)
mixer/websocket/pbSubProto/pb/payload.pb.go:227
↓ 7 callersMethodChangeLen
ChangeLen changes the buffer length.
utils/bytebuffer.go:113
↓ 7 callersMethodDebugf
Debugf logs a message using DEBUG as log level.
log.go:79
↓ 7 callersMethodEncode
Encode writes the json encoding of v to the writer.
codec/_jsoniter_codec.go:58
↓ 7 callersFunctionGetMessage
GetMessage gets a *message form message pool. NOTE: newBodyFunc is only for reading form connection; settings are only for writing to connection.
socket/message.go:164
↓ 7 callersMethodInput
Input returns readed message.
context.go:81
↓ 7 callersMethodLen
Len returns the length of transfer pipe.
xfer/xfer.go:122
↓ 7 callersMethodParseBytes
ParseBytes parses the given b containing query args.
utils/args.go:79
↓ 7 callersMethodPeek
Peek returns query arg value for the given key. Returned value is valid until the next Args call.
utils/args.go:193
↓ 7 callersMethodPush
(uri string, arg interface{}, setting ...erpc.MessageSetting)
plugin/proxy/proxy.go:64
↓ 7 callersFunctionReg
Reg registers Codec.
codec/codec.go:51
↓ 7 callersMethodSetID
SetID sets the session id.
session.go:47
↓ 7 callersMethodTLSConfig
TLSConfig returns the TLS config.
peer.go:48
↓ 7 callersMethodZero
Zero zero the counter.
utils/rw_counter.go:63
next →1–100 of 1,742, ranked by callers