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
Function
Criticalf
Criticalf logs a message using CRITICAL as log level.
log.go:311
↓ 1 callers
Method
Cyan
(msg interface{}, styles ...string)
utils/color/color.go:164
↓ 1 callers
Method
CyanBg
(msg interface{}, styles ...string)
utils/color/color.go:200
↓ 1 callers
Function
DefaultBodyCodec
DefaultBodyCodec gets the default body codec.
config.go:159
↓ 1 callers
Function
DefaultProtoFunc
DefaultProtoFunc gets the default builder of socket communication protocol
socket/protocol.go:55
↓ 1 callers
Function
Dial
Dial opens a new client connection to a WebSocket.
mixer/websocket/websocket/client.go:55
↓ 1 callers
Method
Dial
Dial dials the connection, and try again if it fails.
dialer.go:82
↓ 1 callers
Function
DialAddrContext
DialAddrContext establishes a new QUIC connection to a server. It uses a new UDP connection and closes this connection when the QUIC session is closed
quic/quic.go:15
↓ 1 callers
Function
DialAddrContext
DialAddrContext establishes a new KCP connection to a server. It uses a new UDP connection and closes this connection when the KCP session is closed.
kcp/kcp.go:18
↓ 1 callers
Method
DialProtobuf
DialProtobuf connects with the Protobuf protocol.
mixer/websocket/client.go:50
↓ 1 callers
Method
Dim
(msg interface{}, styles ...string)
utils/color/color.go:216
↓ 1 callers
Method
Discard
Discard skips the next n bytes, returning the number of bytes discarded. If Discard skips fewer than n bytes, it also returns an error. If 0 <= n <=
utils/bufio_reader.go:90
↓ 1 callers
Function
EnforceSecure
EnforceSecure enforces the body of the encrypted reply message. Note: requires that the secure plugin has been registered!
plugin/secure/secure.go:66
↓ 1 callers
Function
FlushLogger
FlushLogger writes any buffered log to the underlying io.Writer.
log.go:203
↓ 1 callers
Function
GenerateTLSConfigForClient
GenerateTLSConfigForClient setup a bare-bones(skip verify) TLS config for client.
helper.go:182
↓ 1 callers
Function
GenerateTLSConfigForServer
GenerateTLSConfigForServer setup a bare-bones TLS config for server.
helper.go:187
↓ 1 callers
Function
GetAcceptBodyCodec
GetAcceptBodyCodec gets the body codec that the sender wishes to accept. NOTE: If the specified codec is invalid, the receiver will ignore the mate da
message.go:153
↓ 1 callers
Function
GetBodyCodec
GetBodyCodec returns the codec id from content type.
proto/httproto/httproto.go:62
↓ 1 callers
Method
GetBodyCodec
GetBodyCodec gets the body codec type of the input message.
context.go:289
↓ 1 callers
Method
GetCiphertext
()
plugin/secure/secure.pb.go:52
↓ 1 callers
Method
GetUfloat
GetUfloat returns ufloat value for the given key.
utils/args.go:267
↓ 1 callers
Method
GetUint
GetUint returns uint value for the given key.
utils/args.go:234
↓ 1 callers
Function
Go
Go similar to go func, but return false if insufficient resources.
helper.go:53
↓ 1 callers
Method
Green
(msg interface{}, styles ...string)
utils/color/color.go:148
↓ 1 callers
Method
GreenBg
(msg interface{}, styles ...string)
utils/color/color.go:184
↓ 1 callers
Method
Grey
(msg interface{}, styles ...string)
utils/color/color.go:172
↓ 1 callers
Method
Hidden
(msg interface{}, styles ...string)
utils/color/color.go:232
↓ 1 callers
Method
IP
IP returns the remote addr.
context.go:304
↓ 1 callers
Function
InheritedListen
InheritedListen announces on the local network address laddr. The network net is "quic". It returns an inherited net.Listener for the matching network
quic/inherit.go:19
↓ 1 callers
Function
InheritedListen
InheritedListen announces on the local network address laddr. The network net is "KCP". It returns an inherited net.Listener for the matching network
kcp/inherit.go:18
↓ 1 callers
Method
InheritedListen
InheritedListen announces on the local network address laddr. It returns an inherited net.Listener for the matching address, or creates a new one.
quic/inherit.go:105
↓ 1 callers
Method
InheritedListen
InheritedListen announces on the local network address laddr. It returns an inherited net.Listener for the matching address, or creates a new one.
kcp/inherit.go:104
↓ 1 callers
Method
InputBodyBytes
InputBodyBytes if the input body binder is []byte type, returns it, else returns nil.
context.go:654
↓ 1 callers
Method
InputMeta
InputMeta returns the header metadata of input message. NOTE: Inside, <-Done() is automatically called and blocked, until the call is completed!
context.go:705
↓ 1 callers
Method
Inverse
(msg interface{}, styles ...string)
utils/color/color.go:228
↓ 1 callers
Function
Is
Is determines if the id is gzip.
xfer/gzip/gzip.go:37
↓ 1 callers
Method
IsServerConn
()
mixer/websocket/websocket/websocket.go:244
↓ 1 callers
Function
IsTerminal
IsTerminal return true if the file descriptor is terminal.
utils/color/isatty_bsd.go:15
↓ 1 callers
Method
Italic
(msg interface{}, styles ...string)
utils/color/color.go:220
↓ 1 callers
Method
LimitConfig
LimitConfig returns the overload limitation condition.
plugin/overloader/overloader.go:113
↓ 1 callers
Method
ListenAndServeProtobuf
ListenAndServeProtobuf listen and serve with the Protobuf protocol.
mixer/websocket/server.go:74
↓ 1 callers
Function
Magenta
(msg interface{}, styles ...string)
utils/color/color.go:268
↓ 1 callers
Method
Magenta
(msg interface{}, styles ...string)
utils/color/color.go:160
↓ 1 callers
Method
MagentaBg
(msg interface{}, styles ...string)
utils/color/color.go:196
↓ 1 callers
Method
MarshalTo
(dAtA []byte)
plugin/secure/secure.pb.go:72
↓ 1 callers
Method
MarshalTo
(dAtA []byte)
codec/empty.pb.go:56
↓ 1 callers
Function
MessageSizeLimit
MessageSizeLimit gets the message size upper limit of reading.
socket/message.go:554
↓ 1 callers
Method
ModifySocket
ModifySocket modifies the socket. NOTE: The connection fd is not allowed to change! Inherit the previous session id and custom data swap; If modifiedC
session.go:59
↓ 1 callers
Function
MustGo
MustGo always try to use goroutine callbacks until execution is complete or the context is canceled.
helper.go:68
↓ 1 callers
Method
Names
Names returns the name list of transfer filters.
xfer/xfer.go:142
↓ 1 callers
Function
New
New creates a Color instance.
utils/color/color.go:126
↓ 1 callers
Function
New
New creates a client session which is has connection pool.
mixer/multiclient/multiclient.go:33
↓ 1 callers
Function
NewClient
NewClient creates a evio client, equivalent to erpc.NewPeer.
mixer/evio/evio.go:17
↓ 1 callers
Function
NewColorableStderr
()
utils/color/colorable_others.go:23
↓ 1 callers
Function
NewColorableStdout
()
utils/color/colorable_others.go:19
↓ 1 callers
Function
NewDialPlugin
NewDialPlugin creates a websocket plugin for client.
mixer/websocket/client.go:63
↓ 1 callers
Method
NewFrameReader
NewFrameReader reads a frame header from the connection, and creates new reader for the frame. See Section 5.2 Base Framing protocol for detail. http:
mixer/websocket/websocket/hybi.go:117
↓ 1 callers
Method
NewFrameWriter
(payloadType byte)
mixer/websocket/websocket/hybi.go:251
↓ 1 callers
Function
NewInheritedListener
NewInheritedListener creates a inherited listener.
listener.go:30
↓ 1 callers
Function
NewPlugin
NewPlugin creates a AES encryption/decryption plugin. The cipherkey argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-
plugin/secure/secure.go:44
↓ 1 callers
Function
NewPlugin
NewPlugin creates a proxy plugin for handling unknown calling and pushing.
plugin/proxy/proxy.go:31
↓ 1 callers
Function
NewReadCounter
NewReadCounter wrap the reader with counter.
utils/rw_counter.go:44
↓ 1 callers
Method
NewServerConn
NewServerConn creates a new WebSocket connection.
mixer/websocket/websocket/websocket.go:117
↓ 1 callers
Function
NewSocket
NewSocket wraps a net.Conn as a Socket.
socket/socket.go:157
↓ 1 callers
Function
NewStructArgsBinder
NewStructArgsBinder creates a plugin that binds and validates structure type parameters.
plugin/binder/binder.go:91
↓ 1 callers
Function
NewTLSConfigFromFile
NewTLSConfigFromFile creates a new TLS config.
helper.go:173
↓ 1 callers
Function
NewTPS
go:generate go build $GOFILE
examples/plugin-tps/tps.go:14
↓ 1 callers
Function
NewWriteCounter
NewWriteCounter wrap the writer with counter.
utils/rw_counter.go:82
↓ 1 callers
Method
Next
Next returns whether there are still more redial times.
dialer.go:165
↓ 1 callers
Function
Noticef
Noticef logs a message using NOTICE as log level.
log.go:341
↓ 1 callers
Method
OnPack
OnPack packs transfer byte stream, from inner-most to outer-most.
xfer/xfer.go:164
↓ 1 callers
Method
OnUnpack
OnUnpack unpacks transfer byte stream, from outer-most to inner-most.
xfer/xfer.go:175
↓ 1 callers
Method
PacketConn
PacketConn returns the net.PacketConn.
quic/quic.go:98
↓ 1 callers
Method
PacketConn
PacketConn returns the net.PacketConn.
kcp/kcp.go:66
↓ 1 callers
Function
Panicf
Panicf is equivalent to l.Criticalf followed by a call to panic().
log.go:297
↓ 1 callers
Function
ParseUfloat
ParseUfloat parses unsigned float from buf.
utils/bytesconv.go:196
↓ 1 callers
Method
PeekMeta
PeekMeta peeks the header metadata for the input message.
context.go:258
↓ 1 callers
Method
Peer
Peer returns the peer.
context.go:33
↓ 1 callers
Method
Peer
Peer returns the peer.
context.go:737
↓ 1 callers
Method
PostAccept
(PreSession)
plugin.go:65
↓ 1 callers
Method
PostAccept
PostAccept initializes heartbeat information.
plugin/heartbeat/ping.go:174
↓ 1 callers
Method
PostAccept
PostAccept checks connection overload. If overload, print error log and close the connection.
plugin/overloader/overloader.go:71
↓ 1 callers
Method
PostAccept
(sess erpc.Session, conn *ws.Conn)
mixer/websocket/server.go:213
↓ 1 callers
Method
PostDial
(sess PreSession, isRedial bool)
plugin.go:60
↓ 1 callers
Method
PostDisconnect
(BaseSession)
plugin.go:150
↓ 1 callers
Method
PostNewPeer
(EarlyPeer)
plugin.go:40
↓ 1 callers
Method
PostReadCallBody
(ReadCtx)
plugin.go:115
↓ 1 callers
Method
PostReadCallHeader
(ReadCtx)
plugin.go:105
↓ 1 callers
Method
PostReadCallHeader
PostReadCallHeader checks PULL QPS overload. If overload, print error log and reply error.
plugin/overloader/overloader.go:89
↓ 1 callers
Method
PostReadPushBody
(ReadCtx)
plugin.go:130
↓ 1 callers
Method
PostReadPushHeader
(ReadCtx)
plugin.go:120
↓ 1 callers
Method
PostReadPushHeader
PostReadPushHeader updates heartbeat information.
plugin/heartbeat/ping.go:197
↓ 1 callers
Method
PostReadReplyBody
(ReadCtx)
plugin.go:145
↓ 1 callers
Method
PostReadReplyHeader
(ReadCtx)
plugin.go:135
↓ 1 callers
Method
PostReg
(*Handler)
plugin.go:45
↓ 1 callers
Method
PostWriteCall
(WriteCtx)
plugin.go:75
↓ 1 callers
Method
PostWritePush
(WriteCtx)
plugin.go:95
↓ 1 callers
Method
PostWritePush
PostWritePush updates heartbeat information.
plugin/heartbeat/ping.go:186
↓ 1 callers
Method
PostWritePush
(ctx erpc.WriteCtx)
plugin/heartbeat/pong.go:105
↓ 1 callers
Method
PostWriteReply
(WriteCtx)
plugin.go:85
← previous
next →
401–500 of 1,742, ranked by callers