Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Allenxuxu/gev
/ types & classes
Types & classes
78 in github.com/Allenxuxu/gev
⨍
Functions
368
◇
Types & classes
78
↓ 5 callers
TypeAlias
ProtocolError
ProtocolError describes error during checking/parsing websocket frames or headers.
plugins/websocket/ws/errors.go:10
↓ 1 callers
TypeAlias
HandshakeHeaderString
HandshakeHeaderString is an adapter to allow the use of headers represented by ordinary string as HandshakeHeader.
plugins/websocket/ws/http.go:298
↓ 1 callers
TypeAlias
IntHeap
benchmark_load_balance_test.go:9
↓ 1 callers
TypeAlias
OpCode
OpCode represents operation code.
plugins/websocket/ws/frame.go:14
↓ 1 callers
TypeAlias
StatusCode
StatusCode represents the encoded reason for closure of websocket connection. There are few helper methods on StatusCode that helps to define a range
plugins/websocket/ws/frame.go:62
Interface
CallBack
connection
server_std.go:143
Interface
CallBack
connection.go:22
Struct
Connection
Connection TCP 连接
server_std.go:149
Struct
Connection
Connection TCP 连接
connection.go:28
FuncType
ConnectionOption
func(*ConnectionOptions)
connection_options.go:9
Struct
ConnectionOptions
connection_options.go:5
Struct
DefaultProtocol
DefaultProtocol 默认 Protocol
protocol.go:16
TypeAlias
Event
Event poller 返回事件
poller/poller.go:11
Struct
EventLoop
eventloop/eventloop_std.go:7
Struct
EventLoop
EventLoop 事件循环
eventloop/eventloop.go:27
Struct
ExampleProtocol
example/protocol/protocol.go:13
Struct
Frame
Frame represents websocket frame. See https://tools.ietf.org/html/rfc6455#section-5.2
plugins/websocket/ws/frame.go:189
Interface
Handler
Handler Server 注册接口
server.go:19
Interface
Handler
Handler Server 注册接口
server_std.go:23
Struct
HandlerWrap
HandlerWrap gev Handler wrap
plugins/websocket/wrap.go:19
Struct
Handshake
Handshake represents handshake result.
plugins/websocket/ws/ws.go:40
Interface
HandshakeHeader
HandshakeHeader is the interface that writes both upgrade request or response headers into a given io.Writer.
plugins/websocket/ws/http.go:292
TypeAlias
HandshakeHeaderBytes
HandshakeHeaderBytes is an adapter to allow the use of headers represented by ordinary slice of bytes as HandshakeHeader.
plugins/websocket/ws/http.go:308
FuncType
HandshakeHeaderFunc
HandshakeHeaderFunc is an adapter to allow the use of headers represented by ordinary function as HandshakeHeader.
plugins/websocket/ws/http.go:318
TypeAlias
HandshakeHeaderHTTP
HandshakeHeaderHTTP is an adapter to allow the use of http.Header as HandshakeHeader.
plugins/websocket/ws/http.go:327
Struct
Header
Header represents websocket frame header. See https://tools.ietf.org/html/rfc6455#section-5.2
plugins/websocket/ws/frame.go:169
Struct
KeyValueContext
context.go:5
TypeAlias
Level
Level is a log level
log/log.go:17
FuncType
LoadBalanceStrategy
func([]*eventloop.EventLoop) *eventloop.EventLoop
load_balance.go:5
Interface
Logger
Logger is a generic logging interface
log/log.go:11
Struct
Message
Message 数据帧定义
plugins/protobuf/protocol.go:10
TypeAlias
MessageType
MessageType represents the type of a WebSocket message. See https://tools.ietf.org/html/rfc6455#section-5.6
plugins/websocket/ws/ws.go:17
Struct
Msg1
example/protobuf/proto/user.pb.go:28
Struct
Msg2
example/protobuf/proto/user.pb.go:83
FuncType
Option
Option ...
options.go:23
Struct
Options
Options 服务配置
options.go:8
Struct
Poller
Poller Kqueue封装
poller/kqueue.go:16
Struct
Poller
Poller Epoll封装
poller/epoll.go:17
Interface
Protocol
Protocol 自定义协议编解码接口
protocol.go:10
Struct
Protocol
Protocol protobuf
plugins/protobuf/protocol.go:18
Struct
Protocol
Protocol websocket
plugins/websocket/protocol.go:17
FuncType
RejectOption
RejectOption represents an option used to control the way connection is rejected.
plugins/websocket/ws/errors.go:83
Struct
Response
example/protobuf/proto/user.pb.go:146
FuncType
SendInLoopFunc
func(interface{})
connection_options.go:3
Struct
Server
Server gev Server
server.go:25
Struct
Server
Server gev Server
server_std.go:29
Struct
Server
Server example
example/maxconnection/main.go:13
Struct
Server
Server example
example/pushmessage/main.go:15
Struct
Server
Server example
example/bufferlength/main.go:15
Struct
Session
example/websocket/main.go:27
Interface
Socket
Socket 接口
eventloop/eventloop.go:21
Struct
StatusCodeRange
StatusCodeRange describes range of StatusCode values.
plugins/websocket/ws/frame.go:65
Struct
Upgrader
Upgrader contains options for upgrading connection to websocket.
plugins/websocket/ws/ws.go:49
Interface
WSHandler
WSHandler WebSocket Server 注册接口
plugins/websocket/wrap.go:12
Struct
defaultLogLogger
log/log.go:41
Struct
echoServer
benchmarks/gnet-echo-server/main.go:13
Struct
eventLoopLocal
nolint
eventloop/eventloop.go:36
Struct
everyScheduler
everyscheduler.go:5
Struct
example
server_test.go:17
Struct
example
example/protocol/server.go:11
Struct
example
example/echo/main.go:15
Struct
example
example/protobuf/server/main.go:14
Struct
example
example/websocket/main.go:22
Struct
example
example/sendAsync/main.go:14
Struct
example
example/idleconnection/main.go:14
Struct
example
benchmarks/gev-echo-server/echo.go:12
Struct
example
benchmarks/websocket/server.go:12
Struct
example1
server_test.go:198
Struct
example2
server_conn_test.go:19
Struct
example3
server_conn_test.go:69
FuncType
handleConnFunc
handleConnFunc 处理新连接
listener.go:18
TypeAlias
handshakeHeader
plugins/websocket/ws/ws.go:26
Struct
httpRequestLine
plugins/websocket/ws/http.go:71
Struct
listener
listener 监听TCP连接
listener.go:21
Struct
rejectConnectionError
rejectConnectionError represents a rejection of upgrade error. It can be returned by Upgrader's On* hooks to control the way WebSocket handshake is r
plugins/websocket/ws/errors.go:123
Struct
writer
plugins/websocket/ws/http.go:336
Struct
wsExample
example/websocket/wsserver_test.go:22
Struct
x
example/protobuf/proto/user.pb.go:279