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
↓ 283 callers
Method
Errorf
Errorf logs a message using ERROR as log level.
log.go:63
↓ 157 callers
Method
String
String returns printing message information.
socket/message.go:63
↓ 79 callers
Method
Write
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 callers
Method
Close
Close closes peer.
peer.go:36
↓ 73 callers
Method
Printf
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 callers
Method
Fatalf
Fatalf is equivalent to Criticalf followed by a call to os.Exit(1).
log.go:51
↓ 66 callers
Method
Status
Status returns the handle status.
context.go:85
↓ 63 callers
Method
Call
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 callers
Method
Dial
Dial connects with the peer of the destination address.
peer.go:78
↓ 50 callers
Function
lazyLoggerOutput
(targetLevel LoggerLevel, getMsg func() string)
log.go:262
↓ 50 callers
Function
loggerOutput
(loggerLevel LoggerLevel, format string, a ...interface{})
log.go:255
↓ 48 callers
Method
Get
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 callers
Method
Name
()
plugin.go:30
↓ 42 callers
Method
WriteString
WriteString appends s to ByteBuffer.B.
utils/bytebuffer.go:87
↓ 39 callers
Method
Error
()
mixer/websocket/websocket/client.go:21
↓ 39 callers
Method
ListenAndServe
ListenAndServe turns on the listening service.
peer.go:76
↓ 37 callers
Method
XferPipe
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 callers
Method
Meta
Meta returns the metadata. SUGGEST: urlencoded string max len ≤ 65535!
socket/message.go:102
↓ 36 callers
Method
RouteCall
RouteCall registers CALL handlers, and returns the paths.
peer.go:60
↓ 35 callers
Method
Set
Set sets 'key=value' argument.
utils/args.go:171
↓ 33 callers
Method
ServiceMethod
ServiceMethod returns the input message service method.
context.go:73
↓ 32 callers
Method
Flush
Flush writes any buffered log to the underlying io.Writer.
log.go:39
↓ 31 callers
Method
Infof
Infof logs a message using INFO as log level.
log.go:75
↓ 31 callers
Method
Read
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 callers
Function
sovBenchmark
(x uint64)
examples/bench/msg/benchmark.pb.go:843
↓ 29 callers
Function
encodeVarintBenchmark
(dAtA []byte, offset int, v uint64)
examples/bench/msg/benchmark.pb.go:730
↓ 26 callers
Function
Errorf
Errorf logs a message using ERROR as log level.
log.go:321
↓ 26 callers
Method
RemoteAddr
RemoteAddr returns the remote network address.
session.go:43
↓ 26 callers
Method
Reset
Reset reset net.Conn and ProtoFunc.
socket/socket.go:99
↓ 25 callers
Method
Len
Len returns total length of the frame, including header and trailer.
mixer/websocket/websocket/websocket.go:136
↓ 25 callers
Function
outer
(n string)
utils/color/color.go:100
↓ 22 callers
Method
WriteByte
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 callers
Method
Done
Done returns the chan that indicates whether it has been completed.
context.go:690
↓ 21 callers
Method
Marshal
Marshal returns the encoding of v.
codec/codec.go:29
↓ 21 callers
Method
SetBody
SetBody sets the body object.
socket/message.go:115
↓ 20 callers
Method
Mtype
Mtype returns the message type, such as CALL, REPLY, PUSH.
socket/message.go:82
↓ 20 callers
Method
Session
Session returns the session.
context.go:35
↓ 19 callers
Method
Network
Network returns the network.
dialer.go:52
↓ 19 callers
Method
PeekMeta
PeekMeta peeks the header metadata for the input message.
context.go:64
↓ 19 callers
Method
SetMtype
Mtype sets the message type, such as CALL, REPLY, PUSH.
socket/message.go:84
↓ 19 callers
Method
SetServiceMethod
SetServiceMethod sets the serviec method. SUGGEST: max len ≤ 255!
socket/message.go:90
↓ 18 callers
Method
Call
(uri string, arg interface{}, result interface{}, setting ...erpc.MessageSetting)
plugin/proxy/proxy.go:60
↓ 18 callers
Method
SetSize
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 callers
Method
Context
Context carries a deadline, a cancelation signal, and other values across API boundaries.
context.go:44
↓ 17 callers
Method
ID
ID returns codec id.
codec/codec.go:25
↓ 17 callers
Function
LazyDebugf
LazyDebugf get message from @getMsg and write to stdout when log level is met.
log.go:366
↓ 17 callers
Function
b2s
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 callers
Function
newConfig
(t *testing.T, path string)
mixer/websocket/websocket/websocket_test.go:134
↓ 16 callers
Method
BodyCodec
BodyCodec returns the body codec type id.
socket/message.go:109
↓ 16 callers
Method
Unmarshal
Unmarshal parses the encoded data and stores the result in the value pointed to by v.
codec/codec.go:32
↓ 15 callers
Method
Add
Add adds 'key=value' argument. Multiple values for the same key may be added.
utils/args.go:145
↓ 15 callers
Method
Body
Body returns the body object.
socket/message.go:113
↓ 15 callers
Method
Push
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 callers
Method
QueryString
QueryString returns query string for the args. The returned value is valid until the next call to Args methods.
utils/args.go:103
↓ 15 callers
Method
RoutePush
RoutePush registers PUSH handlers, and returns the paths.
peer.go:64
↓ 15 callers
Method
SetBodyCodec
SetBodyCodec sets the body codec for reply message.
context.go:109
↓ 15 callers
Method
Swap
Swap returns custom data swap of the session(socket).
plugin/auth/auth.go:65
↓ 14 callers
Method
Append
Append appends transfer filter by id.
xfer/xfer.go:96
↓ 14 callers
Method
SetSeq
SetSeq sets the message sequence.
socket/message.go:80
↓ 13 callers
Method
LocalAddr
LocalAddr returns the local network address.
session.go:41
↓ 13 callers
Method
Put
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 callers
Method
Seq
Seq returns the input message sequence.
context.go:62
↓ 13 callers
Function
testHybiFrame
(t *testing.T, testHeader, testPayload, testMaskedPayload []byte, frameHeader *hybiFrameHeader)
mixer/websocket/websocket/hybi_test.go:292
↓ 12 callers
Method
SetStatus
SetStatus the message status.
socket/message.go:99
↓ 12 callers
Method
UnmarshalBody
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 callers
Function
AcquireByteBuffer
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 callers
Method
Bytes
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 callers
Function
CodeText
CodeText returns the reply error code text. If the type is undefined returns 'Unknown Error'.
status.go:104
↓ 11 callers
Function
Fatalf
Fatalf is equivalent to l.Criticalf followed by a call to os.Exit(1).
log.go:283
↓ 11 callers
Method
Size
Size returns the size of message. SUGGEST: For better statistics, Proto interfaces should support it.
socket/message.go:52
↓ 10 callers
Method
OnPack
OnPack performs filtering on packing.
xfer/xfer.go:31
↓ 10 callers
Method
OnUnpack
OnUnpack performs filtering on unpacking.
xfer/xfer.go:33
↓ 10 callers
Method
Parse
Parse parses the given string containing query args.
utils/args.go:73
↓ 9 callers
Function
Bold
(msg interface{}, styles ...string)
utils/color/color.go:320
↓ 9 callers
Method
IP
IP returns the remote addr.
context.go:37
↓ 9 callers
Function
NewClient
NewClient creates a new WebSocket client connection over rwc.
mixer/websocket/websocket/client.go:42
↓ 9 callers
Function
PutMessage
PutMessage puts a *message to message pool.
socket/message.go:171
↓ 9 callers
Function
ReleaseByteBuffer
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 callers
Method
SetReadDeadline
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 callers
Method
changeStatus
(stat int32)
session.go:233
↓ 8 callers
Method
Add
(arg *Arg)
plugin/secure/secure_test.go:26
↓ 8 callers
Method
Handle
Handle registers the handler for the given rootPath. If a handler already exists for rootPath, Handle panics.
mixer/websocket/server.go:126
↓ 8 callers
Method
IDs
IDs returns the id list of transfer filters.
xfer/xfer.go:130
↓ 8 callers
Method
MarshalBody
MarshalBody returns the encoding of body. NOTE: when the body is a stream of bytes, no marshalling is done.
socket/message.go:121
↓ 8 callers
Function
Reg
Reg registers a gzip filter for transfer.
xfer/gzip/gzip.go:31
↓ 8 callers
Function
WithContext
WithContext sets the message handling context.
socket/message.go:467
↓ 8 callers
Function
sovPayload
(x uint64)
mixer/websocket/pbSubProto/pb/payload.pb.go:227
↓ 7 callers
Method
ChangeLen
ChangeLen changes the buffer length.
utils/bytebuffer.go:113
↓ 7 callers
Method
Debugf
Debugf logs a message using DEBUG as log level.
log.go:79
↓ 7 callers
Method
Encode
Encode writes the json encoding of v to the writer.
codec/_jsoniter_codec.go:58
↓ 7 callers
Function
GetMessage
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 callers
Method
Input
Input returns readed message.
context.go:81
↓ 7 callers
Method
Len
Len returns the length of transfer pipe.
xfer/xfer.go:122
↓ 7 callers
Method
ParseBytes
ParseBytes parses the given b containing query args.
utils/args.go:79
↓ 7 callers
Method
Peek
Peek returns query arg value for the given key. Returned value is valid until the next Args call.
utils/args.go:193
↓ 7 callers
Method
Push
(uri string, arg interface{}, setting ...erpc.MessageSetting)
plugin/proxy/proxy.go:64
↓ 7 callers
Function
Reg
Reg registers Codec.
codec/codec.go:51
↓ 7 callers
Method
SetID
SetID sets the session id.
session.go:47
↓ 7 callers
Method
TLSConfig
TLSConfig returns the TLS config.
peer.go:48
↓ 7 callers
Method
Zero
Zero zero the counter.
utils/rw_counter.go:63
next →
1–100 of 1,742, ranked by callers