Documentation ¶
Index ¶
- type Config
- type Server
- func (s *Server) ApiVersions(frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) AuthFailed() ([]byte, gnet.Action)
- func (s *Server) Authed(context *context.NetworkContext) bool
- func (s *Server) Fetch(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) FindCoordinator(frame []byte, version int16, config *codec.KafkaProtocolConfig) ([]byte, gnet.Action)
- func (s *Server) FindCoordinatorVersion(frame []byte, version int16, config *codec.KafkaProtocolConfig) ([]byte, gnet.Action)
- func (s *Server) Heartbeat(frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) JoinGroup(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) LeaveGroup(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) ListOffsets(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) ListOffsetsVersion(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) Metadata(frame []byte, version int16, config *codec.KafkaProtocolConfig) ([]byte, gnet.Action)
- func (s *Server) OffsetCommit(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) OffsetCommitVersion(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) OffsetFetch(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) OffsetFetchVersion(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) OnClosed(c gnet.Conn, err error) (action gnet.Action)
- func (s *Server) OnInitComplete(server gnet.Server) (action gnet.Action)
- func (s *Server) OnOpened(c gnet.Conn) (out []byte, action gnet.Action)
- func (s *Server) React(frame []byte, c gnet.Conn) ([]byte, gnet.Action)
- func (s *Server) ReactApiVersion(frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) ReactFetchVersion(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) ReactHeartbeatVersion(frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) ReactJoinGroupVersion(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) ReactLeaveGroupVersion(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) ReactMetadataVersion(frame []byte, version int16, config *codec.KafkaProtocolConfig) ([]byte, gnet.Action)
- func (s *Server) ReactSaslHandshakeAuthVersion(frame []byte, version int16, context *context.NetworkContext) ([]byte, gnet.Action)
- func (s *Server) ReactSaslVersion(frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) ReactSyncGroupVersion(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) SaslAuthenticate(frame []byte, version int16, context *context.NetworkContext) ([]byte, gnet.Action)
- func (s *Server) SaslHandshake(frame []byte, version int16) ([]byte, gnet.Action)
- func (s *Server) SyncGroup(ctx *context.NetworkContext, frame []byte, version int16) ([]byte, gnet.Action)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { *gnet.EventServer ConnMap sync.Map SaslMap sync.Map // contains filtered or unexported fields }
func (*Server) ApiVersions ¶
func (*Server) FindCoordinator ¶
func (*Server) FindCoordinatorVersion ¶
func (*Server) LeaveGroup ¶
func (*Server) ListOffsets ¶
func (*Server) ListOffsetsVersion ¶
func (*Server) OffsetCommit ¶
func (*Server) OffsetCommitVersion ¶
func (*Server) OffsetFetch ¶
func (*Server) OffsetFetchVersion ¶
func (*Server) OnInitComplete ¶
func (*Server) ReactApiVersion ¶
func (*Server) ReactFetchVersion ¶
func (*Server) ReactHeartbeatVersion ¶
func (*Server) ReactJoinGroupVersion ¶
func (*Server) ReactLeaveGroupVersion ¶
func (*Server) ReactMetadataVersion ¶
func (*Server) ReactSaslHandshakeAuthVersion ¶
func (*Server) ReactSaslVersion ¶
func (*Server) ReactSyncGroupVersion ¶
func (*Server) SaslAuthenticate ¶
func (*Server) SaslHandshake ¶
Source Files ¶
- kafka.go
- kafka_api_versions.go
- kafka_auth.go
- kafka_fetch.go
- kafka_find_coordinator.go
- kafka_heartbeat.go
- kafka_join_group.go
- kafka_leave_group.go
- kafka_list_offsets.go
- kafka_metadata.go
- kafka_offset_commit.go
- kafka_offset_fetch.go
- kafka_sasl_authenticate.go
- kafka_sasl_handshake.go
- kafka_sync_group.go
- sasl.go
Click to show internal directories.
Click to hide internal directories.