MCPcopy Create free account

hub / github.com/panjf2000/gnet / types & classes

Types & classes122 in github.com/panjf2000/gnet

↓ 1 callersFuncTypeRunnableFunc
RunnableFunc is an adapter to allow the use of ordinary function as a Runnable.
gnet.go:387
TypeAliasAction
Action is an action that occurs after the completion of an event.
gnet.go:40
FuncTypeAsyncCallback
AsyncCallback is a callback that will be invoked after the asynchronous function finishes. Note that the parameter gnet.Conn might have been already
gnet.go:306
InterfaceAsyncTaskQueue
AsyncTaskQueue is a queue storing asynchronous tasks.
pkg/queue/queue.go:43
StructBuffer
Buffer is a circular buffer that implement io.ReaderWriter interface.
pkg/buffer/ring/ring_buffer.go:48
StructBuffer
Buffer combines ring-buffer and list-buffer. Ring-buffer is the top-priority buffer to store response data, gnet will only switch to list-buffer if th
pkg/buffer/elastic/elastic_ring_list_buffer.go:29
StructBuffer
Buffer is a linked list of node.
pkg/buffer/linkedlist/linked_list_buffer.go:35
StructBuiltinEventEngine
BuiltinEventEngine is a built-in implementation of EventHandler which feeds each method with an empty implementation, you can embed it within your cus
gnet.go:519
StructClient
Client of gnet.
client_unix.go:39
StructClient
client_windows.go:28
InterfaceConn
Conn is an interface of underlying connection.
gnet.go:424
StructEngine
Engine represents an engine context which provides some functions.
gnet.go:54
InterfaceEventHandler
EventHandler represents the engine events' callbacks for the Run call. Each event has an Action return value that is used manage the state of the conn
gnet.go:486
InterfaceEventLoop
EventLoop provides a set of methods for manipulating the event-loop.
gnet.go:401
TypeAliasEventPriority
EventPriority is the priority of an event.
pkg/queue/queue.go:51
FuncTypeFunc
Func is the callback function executed by poller.
pkg/queue/queue.go:21
TypeAliasGFD
GFD is a structure to store the fd, eventloop index, connStore indexes.
internal/gfd/gfd.go:50
TypeAliasLoadBalancing
LoadBalancing represents the type of load-balancing algorithm.
load_balancer.go:25
InterfaceLogger
Logger is used for logging formatted messages.
pkg/logging/logger.go:282
FuncTypeOption
Option is a function that will set up option.
options.go:24
StructOption
Option is used for setting an option on socket.
pkg/socket/socket.go:28
StructOptions
Options are configurations for the gnet application.
options.go:44
StructPollAttachment
PollAttachment is the user data which is about to be stored in "void *ptr" of epoll_data or "void *udata" of kevent.
pkg/netpoll/defs_poller.go:23
FuncTypePollEventHandler
PollEventHandler is the callback for I/O events notified by the poller.
pkg/netpoll/defs_poller.go:20
StructPoller
Poller represents a poller which is in charge of monitoring file-descriptors.
pkg/netpoll/poller_kqueue_ultimate.go:34
StructPoller
Poller represents a poller which is in charge of monitoring file-descriptors.
pkg/netpoll/poller_epoll_ultimate.go:34
StructPoller
Poller represents a poller which is in charge of monitoring file-descriptors.
pkg/netpoll/poller_epoll_default.go:35
StructPoller
Poller represents a poller which is in charge of monitoring file-descriptors.
pkg/netpoll/poller_kqueue_default.go:33
StructPool
Pool represents ring-buffer pool. Distinct pools may be used for distinct types of byte buffers. Properly determined byte buffer types with their own
pkg/pool/ringbuffer/ringbuffer.go:49
StructPool
Pool consists of 32 sync.Pool, representing byte slices of length from 0 to 32 in powers of 2.
pkg/pool/byteslice/byteslice.go:29
InterfaceReader
* type asyncCmdType uint8 const ( asyncCmdClose = iota + 1 asyncCmdWake asyncCmdWrite asyncCmdWritev ) type asyncCmd struct { fd gfd.GFD typ
gnet.go:232
StructRegisteredResult
RegisteredResult is the result of a Register call.
gnet.go:395
StructRingBuffer
RingBuffer is the elastic wrapper of ring.Buffer.
pkg/buffer/elastic/elastic_ring_buffer.go:26
InterfaceRunnable
Runnable defines the common protocol of an execution on an event-loop. This interface should be implemented and passed to an event-loop in some way, t
gnet.go:381
InterfaceSocket
Socket is a set of functions which manipulate the underlying file descriptor of a connection. Note that the methods in this interface are concurrency
gnet.go:312
TypeAliasTCPSocketOpt
TCPSocketOpt is the type of TCP socket options.
options.go:35
StructTask
Task is a wrapper that contains function and its argument.
pkg/queue/queue.go:24
InterfaceWriter
Writer is an interface that consists of a number of methods for writing that Conn must implement.
gnet.go:260
StructantsLogger
pkg/pool/goroutine/goroutine.go:49
Structargs
pkg/math/math_test.go:6
StructasyncWriteHook
connection_unix.go:250
StructasyncWritevHook
connection_unix.go:271
StructbaseLoadBalancer
baseLoadBalancer with base lb.
load_balancer.go:50
StructbenchmarkServerGC
eventloop_unix_test.go:117
StructcallSize
pkg/pool/ringbuffer/ringbuffer.go:142
TypeAliascallSizes
pkg/pool/ringbuffer/ringbuffer.go:147
StructclientEvents
client_test.go:32
StructclientEventsForWake
client_test.go:587
StructclientReadOnEOF
client_test.go:770
StructclientSafeContextEvents
client_test.go:865
Structconn
connection_windows.go:54
Structconn
connection_unix.go:39
StructconnContextKey
connContextKey is a key for net.Conn values in context.Context.
context.go:39
StructconnHandler
client_test.go:26
StructconnMatrix
conn_map.go:25
StructconnMatrix
conn_matrix.go:25
StructconnWithCallback
eventloop_unix.go:108
StructcontextKey
contextKey is a key for Conn values in context.Context.
context.go:25
Structengine
engine_windows.go:29
Structengine
engine_unix.go:35
Structepollevent
pkg/netpoll/defs_linux_arm.go:9
Structepollevent
pkg/netpoll/defs_linux_arm64.go:8
Structepollevent
pkg/netpoll/defs_linux_ppc64le.go:8
Structepollevent
pkg/netpoll/defs_linux_s390x.go:9
Structepollevent
pkg/netpoll/defs_linux_riscv64.go:9
Structepollevent
pkg/netpoll/defs_linux_mips64x.go:9
Structepollevent
pkg/netpoll/defs_linux_ppc64.go:8
Structepollevent
pkg/netpoll/defs_linux_amd64.go:8
Structepollevent
pkg/netpoll/defs_linux_386.go:8
Structepollevent
pkg/netpoll/defs_linux_mipsx.go:9
StructeventList
pkg/netpoll/defs_poller_epoll.go:61
StructeventList
pkg/netpoll/defs_poller_kqueue.go:55
Structeventloop
eventloop_unix.go:42
Structeventloop
eventloop_windows.go:31
StructhandleConn
conn_matrix_test.go:43
StructleastConnectionsLoadBalancer
leastConnectionsLoadBalancer with Least-Connections algorithm.
load_balancer.go:62
Structlistener
listener_unix.go:34
Structlistener
listener_windows.go:31
InterfaceloadBalancer
loadBalancer is an interface which manipulates the event-loop set.
load_balancer.go:41
StructlockFreeQueue
lockFreeQueue is a simple, fast, and practical non-blocking and concurrent queue with no lock.
pkg/queue/lock_free_queue.go:86
TypeAliasmonotoneSeq
internal/gfd/gfd.go:41
StructnetAddrContextKey
netAddrContextKey is a key for net.Addr values in context.Context.
context.go:53
StructnetErr
connection_windows.go:35
Structnode
pkg/queue/lock_free_queue.go:92
Structnode
pkg/buffer/linkedlist/linked_list_buffer.go:25
StructopenConn
connection_windows.go:49
StructprefixEncoder
pkg/logging/logger.go:126
StructroundRobinLoadBalancer
roundRobinLoadBalancer with Round-Robin algorithm.
load_balancer.go:56
StructsafeCtxPayloadA
gnet_test.go:2745
StructsafeCtxPayloadB
gnet_test.go:2746
StructserverEventsForWake
client_test.go:633
StructsimServer
gnet_test.go:1740
StructsourceAddrHashLoadBalancer
sourceAddrHashLoadBalancer with Hash algorithm.
load_balancer.go:67
StructstreamProxyServer
gnet_test.go:2165
StructtcpConn
connection_windows.go:40
StructtestBadAddrServer
gnet_test.go:885
StructtestBindToDeviceServer
os_unix_test.go:245
StructtestClient
client_test.go:364
StructtestCloseActionErrorServer
gnet_test.go:1089
StructtestCloseActionOnOpenServer
gnet_test.go:1189
next →1–100 of 122, ranked by callers