MCPcopy Create free account

hub / github.com/Allenxuxu/gev / types & classes

Types & classes78 in github.com/Allenxuxu/gev

↓ 5 callersTypeAliasProtocolError
ProtocolError describes error during checking/parsing websocket frames or headers.
plugins/websocket/ws/errors.go:10
↓ 1 callersTypeAliasHandshakeHeaderString
HandshakeHeaderString is an adapter to allow the use of headers represented by ordinary string as HandshakeHeader.
plugins/websocket/ws/http.go:298
↓ 1 callersTypeAliasIntHeap
benchmark_load_balance_test.go:9
↓ 1 callersTypeAliasOpCode
OpCode represents operation code.
plugins/websocket/ws/frame.go:14
↓ 1 callersTypeAliasStatusCode
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
InterfaceCallBack
connection
server_std.go:143
InterfaceCallBack
connection.go:22
StructConnection
Connection TCP 连接
server_std.go:149
StructConnection
Connection TCP 连接
connection.go:28
FuncTypeConnectionOption
func(*ConnectionOptions)
connection_options.go:9
StructConnectionOptions
connection_options.go:5
StructDefaultProtocol
DefaultProtocol 默认 Protocol
protocol.go:16
TypeAliasEvent
Event poller 返回事件
poller/poller.go:11
StructEventLoop
eventloop/eventloop_std.go:7
StructEventLoop
EventLoop 事件循环
eventloop/eventloop.go:27
StructExampleProtocol
example/protocol/protocol.go:13
StructFrame
Frame represents websocket frame. See https://tools.ietf.org/html/rfc6455#section-5.2
plugins/websocket/ws/frame.go:189
InterfaceHandler
Handler Server 注册接口
server.go:19
InterfaceHandler
Handler Server 注册接口
server_std.go:23
StructHandlerWrap
HandlerWrap gev Handler wrap
plugins/websocket/wrap.go:19
StructHandshake
Handshake represents handshake result.
plugins/websocket/ws/ws.go:40
InterfaceHandshakeHeader
HandshakeHeader is the interface that writes both upgrade request or response headers into a given io.Writer.
plugins/websocket/ws/http.go:292
TypeAliasHandshakeHeaderBytes
HandshakeHeaderBytes is an adapter to allow the use of headers represented by ordinary slice of bytes as HandshakeHeader.
plugins/websocket/ws/http.go:308
FuncTypeHandshakeHeaderFunc
HandshakeHeaderFunc is an adapter to allow the use of headers represented by ordinary function as HandshakeHeader.
plugins/websocket/ws/http.go:318
TypeAliasHandshakeHeaderHTTP
HandshakeHeaderHTTP is an adapter to allow the use of http.Header as HandshakeHeader.
plugins/websocket/ws/http.go:327
StructHeader
Header represents websocket frame header. See https://tools.ietf.org/html/rfc6455#section-5.2
plugins/websocket/ws/frame.go:169
StructKeyValueContext
context.go:5
TypeAliasLevel
Level is a log level
log/log.go:17
FuncTypeLoadBalanceStrategy
func([]*eventloop.EventLoop) *eventloop.EventLoop
load_balance.go:5
InterfaceLogger
Logger is a generic logging interface
log/log.go:11
StructMessage
Message 数据帧定义
plugins/protobuf/protocol.go:10
TypeAliasMessageType
MessageType represents the type of a WebSocket message. See https://tools.ietf.org/html/rfc6455#section-5.6
plugins/websocket/ws/ws.go:17
StructMsg1
example/protobuf/proto/user.pb.go:28
StructMsg2
example/protobuf/proto/user.pb.go:83
FuncTypeOption
Option ...
options.go:23
StructOptions
Options 服务配置
options.go:8
StructPoller
Poller Kqueue封装
poller/kqueue.go:16
StructPoller
Poller Epoll封装
poller/epoll.go:17
InterfaceProtocol
Protocol 自定义协议编解码接口
protocol.go:10
StructProtocol
Protocol protobuf
plugins/protobuf/protocol.go:18
StructProtocol
Protocol websocket
plugins/websocket/protocol.go:17
FuncTypeRejectOption
RejectOption represents an option used to control the way connection is rejected.
plugins/websocket/ws/errors.go:83
StructResponse
example/protobuf/proto/user.pb.go:146
FuncTypeSendInLoopFunc
func(interface{})
connection_options.go:3
StructServer
Server gev Server
server.go:25
StructServer
Server gev Server
server_std.go:29
StructServer
Server example
example/maxconnection/main.go:13
StructServer
Server example
example/pushmessage/main.go:15
StructServer
Server example
example/bufferlength/main.go:15
StructSession
example/websocket/main.go:27
InterfaceSocket
Socket 接口
eventloop/eventloop.go:21
StructStatusCodeRange
StatusCodeRange describes range of StatusCode values.
plugins/websocket/ws/frame.go:65
StructUpgrader
Upgrader contains options for upgrading connection to websocket.
plugins/websocket/ws/ws.go:49
InterfaceWSHandler
WSHandler WebSocket Server 注册接口
plugins/websocket/wrap.go:12
StructdefaultLogLogger
log/log.go:41
StructechoServer
benchmarks/gnet-echo-server/main.go:13
StructeventLoopLocal
nolint
eventloop/eventloop.go:36
StructeveryScheduler
everyscheduler.go:5
Structexample
server_test.go:17
Structexample
example/protocol/server.go:11
Structexample
example/echo/main.go:15
Structexample
example/protobuf/server/main.go:14
Structexample
example/websocket/main.go:22
Structexample
example/sendAsync/main.go:14
Structexample
example/idleconnection/main.go:14
Structexample
benchmarks/gev-echo-server/echo.go:12
Structexample
benchmarks/websocket/server.go:12
Structexample1
server_test.go:198
Structexample2
server_conn_test.go:19
Structexample3
server_conn_test.go:69
FuncTypehandleConnFunc
handleConnFunc 处理新连接
listener.go:18
TypeAliashandshakeHeader
plugins/websocket/ws/ws.go:26
StructhttpRequestLine
plugins/websocket/ws/http.go:71
Structlistener
listener 监听TCP连接
listener.go:21
StructrejectConnectionError
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
Structwriter
plugins/websocket/ws/http.go:336
StructwsExample
example/websocket/wsserver_test.go:22
Structx
example/protobuf/proto/user.pb.go:279