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
↓ 3 callers
Method
ID
ID returns transfer filter id.
xfer/xfer.go:27
↓ 3 callers
Method
ListenAddr
ListenAddr returns the listener address.
config.go:58
↓ 3 callers
Method
MarshalTo
(dAtA []byte)
mixer/websocket/pbSubProto/pb/payload.pb.go:131
↓ 3 callers
Method
Name
Name returns transfer filter name.
xfer/xfer.go:29
↓ 3 callers
Method
Name
Name returns codec name.
codec/codec.go:27
↓ 3 callers
Method
Network
Network returns the network type for a WebSocket, "websocket".
mixer/websocket/websocket/websocket.go:78
↓ 3 callers
Function
New
New creates a plug-in to protect erpc from overload.
plugin/overloader/overloader.go:47
↓ 3 callers
Method
NewArgValue
NewArgValue creates a new arg elem value.
router.go:939
↓ 3 callers
Function
NewConfig
NewConfig creates a new WebSocket config for client connection.
mixer/websocket/websocket/client.go:26
↓ 3 callers
Function
NewFakeAddr
NewFakeAddr creates an object that implements net.Add interface.
helper.go:288
↓ 3 callers
Function
NewServeHandler
NewServeHandler creates a websocket handler.
mixer/websocket/server.go:146
↓ 3 callers
Function
PrepareArgs
PrepareArgs prepare args.
examples/bench/msg/args.go:10
↓ 3 callers
Function
ProtoMarshal
ProtoMarshal returns the Protobuf encoding of v.
codec/protobuf_codec.go:63
↓ 3 callers
Function
ProtoUnmarshal
ProtoUnmarshal parses the Protobuf-encoded data and stores the result in the value pointed to by v.
codec/protobuf_codec.go:75
↓ 3 callers
Method
RangeSession
RangeSession ranges all sessions. If fn returns false, stop traversing.
peer.go:42
↓ 3 callers
Method
RealIP
RealIP returns the the current real remote addr.
context.go:309
↓ 3 callers
Method
Reset
Reset resets and returns itself.
socket/message.go:36
↓ 3 callers
Method
Set
Set sets a Socket.
socket/socket_hub.go:37
↓ 3 callers
Method
SetDeadline
SetDeadline sets the read and write deadlines associated with the connection. It is equivalent to calling both SetReadDeadline and SetWriteDeadline.
socket/socket.go:60
↓ 3 callers
Method
SetNewBody
SetNewBody resets the function of geting body. NOTE: NewBodyFunc is only for reading form connection;
socket/message.go:118
↓ 3 callers
Method
SetString
SetString sets ByteBuffer.B to s.
utils/bytebuffer.go:98
↓ 3 callers
Method
String
String returns the string. NOTE: non-concurrent security
utils/count_str.go:55
↓ 3 callers
Method
SwapLen
SwapLen returns the amount of custom data of the socket.
socket/socket.go:93
↓ 3 callers
Function
Tracef
Tracef logs a message using TRACE as log level.
log.go:371
↓ 3 callers
Method
Update
Update updates the overload limitation condition.
plugin/overloader/overloader.go:118
↓ 3 callers
Method
VisitMeta
VisitMeta calls f for each existing metadata. f must not retain references to key and value after returning. Make key and/or value copies if you need
context.go:69
↓ 3 callers
Function
allocArg
(h []argsKV)
utils/args.go:369
↓ 3 callers
Function
asKCP
(network string)
config.go:145
↓ 3 callers
Function
asQUIC
(network string)
config.go:136
↓ 3 callers
Function
delAllArgs
(args []argsKV, key string)
utils/args.go:327
↓ 3 callers
Method
delete
delete deletes the *session for a id.
session.go:1004
↓ 3 callers
Method
dialWithRetry
dialWithRetry dials the connection, and try again if it fails. NOTE: sessID is not empty only when the disconnection is redialing
dialer.go:90
↓ 3 callers
Method
doSetting
(settings ...MessageSetting)
socket/message.go:235
↓ 3 callers
Method
done
()
context.go:842
↓ 3 callers
Function
formatProperType
(v reflect.Value)
codec/plain_codec.go:71
↓ 3 callers
Function
getHeartbeatInfo
getHeartbeatInfo gets heartbeat info from session.
plugin/heartbeat/info.go:72
↓ 3 callers
Method
getLimit
()
plugin/overloader/qpslimiter.go:32
↓ 3 callers
Function
getNonceAccept
getNonceAccept computes the base64-encoded SHA-1 of the concatenation of the nonce ("Sec-WebSocket-Key" value) with the websocket GUID string.
mixer/websocket/websocket/hybi.go:391
↓ 3 callers
Method
getRate
()
plugin/heartbeat/ping.go:99
↓ 3 callers
Method
getStatus
()
session.go:256
↓ 3 callers
Function
hexbyte2int
(c byte)
utils/bytesconv.go:333
↓ 3 callers
Function
hybiClientHandshake
Client handshake described in draft-ietf-hybi-thewebsocket-protocol-17
mixer/websocket/websocket/hybi.go:405
↓ 3 callers
Method
isActiveClosed
()
socket/socket.go:339
↓ 3 callers
Function
newSession
(peer *peer, conn net.Conn, protoFuncs []ProtoFunc)
session.go:204
↓ 3 callers
Function
objectName
(v reflect.Value)
router.go:920
↓ 3 callers
Function
parseAuthority
(location *url.URL)
mixer/websocket/websocket/client.go:71
↓ 3 callers
Method
redialForClient
(oldConn net.Conn)
session.go:834
↓ 3 callers
Method
refresh
()
plugin.go:227
↓ 3 callers
Method
releaseConn
()
plugin/overloader/overloader.go:195
↓ 3 callers
Function
resolveCtrlStructOrPoolFunc
(ctrlStructOrPoolFunc interface{})
router.go:461
↓ 3 callers
Method
setContext
setContext sets the context for timeout.
context.go:327
↓ 3 callers
Function
setWithProperType
(valueKind reflect.Kind, val string, structField reflect.Value)
codec/form_codec.go:208
↓ 3 callers
Function
sovSecure
(x uint64)
plugin/secure/secure.pb.go:133
↓ 3 callers
Function
sovTest
(x uint64)
socket/example/pb/test.pb.go:130
↓ 3 callers
Method
take
()
plugin/overloader/qpslimiter.go:58
↓ 3 callers
Function
testWithProtocol
(t *testing.T, subproto []string)
mixer/websocket/websocket/websocket_test.go:259
↓ 3 callers
Method
tryChangeStatus
(to int32, fromList ...int32)
session.go:237
↓ 3 callers
Method
update
(maxQPS int32, qpsInterval time.Duration)
plugin/overloader/qpslimiter.go:40
↓ 3 callers
Method
write
(message Message)
session.go:897
↓ 3 callers
Method
writeReply
(stat *Status)
context.go:570
↓ 2 callers
Method
Accept
Accept implements the Accept method in the Listener interface; it waits for the next call and returns a generic Conn.
kcp/kcp.go:54
↓ 2 callers
Method
Add
Add handles addition request
examples/kcp/server_test.go:63
↓ 2 callers
Function
AppendQuotedArg
AppendQuotedArg appends url-encoded src to dst and returns appended dst.
utils/bytesconv.go:383
↓ 2 callers
Method
ArgElemType
ArgElemType returns the handler arg elem type.
router.go:934
↓ 2 callers
Method
Bind
Bind when the raw body binder is []byte type, now binds the input body to v.
context.go:126
↓ 2 callers
Function
CheckArgs
CheckArgs check concurrency and total request count.
examples/bench/msg/args.go:46
↓ 2 callers
Method
CloseNotify
CloseNotify returns a channel that closes when the connection has gone away.
session.go:133
↓ 2 callers
Method
ContextAge
ContextAge returns CALL or PUSH context max age.
session.go:99
↓ 2 callers
Method
CopyMeta
CopyMeta returns the input message metadata copy.
context.go:71
↓ 2 callers
Method
CopyTo
CopyTo copies all args to dst.
utils/args.go:54
↓ 2 callers
Function
Cyan
(msg interface{}, styles ...string)
utils/color/color.go:272
↓ 2 callers
Method
Del
Del deletes argument with the given key from query args.
utils/args.go:133
↓ 2 callers
Method
File
()
kcp/inherit.go:199
↓ 2 callers
Method
Get
Get gets Socket by id. If second returned arg is false, mean the Socket is not found.
socket/socket_hub.go:50
↓ 2 callers
Method
GetBodyCodec
GetBodyCodec gets the body codec type of the input message.
context.go:93
↓ 2 callers
Method
GetCipherversion
()
plugin/secure/secure.pb.go:45
↓ 2 callers
Function
GetContentType
GetContentType returns the content type from codec id.
proto/httproto/httproto.go:75
↓ 2 callers
Function
GetLoggerLevel
GetLoggerLevel gets the logger's level.
log.go:238
↓ 2 callers
Method
GetProtoFunc
GetProtoFunc returns the ProtoFunc
session.go:61
↓ 2 callers
Function
Green
(msg interface{}, styles ...string)
utils/color/color.go:256
↓ 2 callers
Method
HandleFrame
(frame frameReader)
mixer/websocket/websocket/websocket.go:156
↓ 2 callers
Method
HeaderReader
HeaderReader returns a reader to read header of the frame.
mixer/websocket/websocket/websocket.go:129
↓ 2 callers
Method
InputBodyBytes
InputBodyBytes if the input body binder is []byte type, returns it, else returns nil.
context.go:124
↓ 2 callers
Method
IsClientConn
()
mixer/websocket/websocket/websocket.go:243
↓ 2 callers
Function
Listen
Listen listens for QUIC connections on a given net.PacketConn. A single PacketConn only be used for a single call to Listen. The PacketConn can be use
quic/quic.go:83
↓ 2 callers
Function
Listen
Listen listens for KCP connections on a given net.PacketConn.
kcp/kcp.go:90
↓ 2 callers
Method
ListenAndServe
ListenAndServe turns on the listening service.
mixer/evio/evio.go:100
↓ 2 callers
Function
ListenUDPAddr
ListenUDPAddr announces on the local network address udpAddr. The tls.Config must not be nil and must contain a certificate configuration. The quic.Co
quic/quic.go:69
↓ 2 callers
Function
ListenUDPAddr
ListenUDPAddr announces on the local network address udpAddr.
kcp/kcp.go:80
↓ 2 callers
Method
MarshalTo
(dAtA []byte)
socket/example/pb/test.pb.go:88
↓ 2 callers
Method
MarshalTo
(dAtA []byte)
examples/bench/msg/benchmark.pb.go:401
↓ 2 callers
Function
NewBearerPlugin
NewBearerPlugin creates a auth bearer plugin for client.
plugin/auth/auth.go:28
↓ 2 callers
Function
NewBinaryProtoFunc
NewBinaryProtoFunc creates erpc.ProtoFunc of Thrift protocol. NOTE: Marshal the body into binary; Support the Meta, BodyCodec and XferPipe.
proto/thriftproto/binary_proto.go:36
↓ 2 callers
Function
NewCheckerPlugin
NewCheckerPlugin creates a auth checker plugin for server.
plugin/auth/auth.go:36
↓ 2 callers
Function
NewColorable
(file *os.File)
utils/color/colorable_windows.go:69
↓ 2 callers
Function
NewCountString
NewCountString creates a self-increasing string counter. NOTE: panic if maxLen<=0
utils/count_str.go:17
↓ 2 callers
Method
NewFrameReader
()
mixer/websocket/websocket/websocket.go:141
↓ 2 callers
Function
NewHTTProtoFunc
NewHTTProtoFunc is creation function of HTTP style socket protocol. NOTE: Only support xfer filter: gzip Must use HTTP service method mapper
proto/httproto/httproto.go:88
↓ 2 callers
Function
NewIgnoreCase
NewIgnoreCase Returns a ignoreCase plugin.
plugin/ignorecase/ignorecase.go:11
↓ 2 callers
Function
NewPbProtoFunc
NewPbProtoFunc is creation function of PROTOBUF socket protocol.
proto/pbproto/pbproto.go:32
← previous
next →
201–300 of 1,742, ranked by callers