Documentation
¶
Index ¶
- type Server
- func (s *Server) Close() error
- func (s *Server) GetCacheManager() *monitor.CacheManager
- func (s *Server) GetDataSource() domain.DataSource
- func (s *Server) GetDataSourceManager() *application.DataSourceManager
- func (s *Server) GetGoroutinePoolStats() pool.PoolStats
- func (s *Server) GetMetricsCollector() *monitor.MetricsCollector
- func (s *Server) GetObjectPoolStats() pool.PoolStats
- func (s *Server) GetUseOptimizer() bool
- func (s *Server) HandleConn(ctx context.Context, conn net.Conn) (err error)
- func (s *Server) SetDataSource(ds domain.DataSource) error
- func (s *Server) SetDataSourceManager(mgr *application.DataSourceManager)
- func (s *Server) SetUseOptimizer(use bool)
- func (s *Server) Start(ctx context.Context, listener net.Listener) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server MySQL 服务器
func (*Server) GetCacheManager ¶
func (s *Server) GetCacheManager() *monitor.CacheManager
GetCacheManager 获取缓存管理器
func (*Server) GetDataSource ¶
func (s *Server) GetDataSource() domain.DataSource
GetDataSource 获取默认数据源
func (*Server) GetDataSourceManager ¶
func (s *Server) GetDataSourceManager() *application.DataSourceManager
GetDataSourceManager 获取数据源管理器
func (*Server) GetGoroutinePoolStats ¶
GetGoroutinePoolStats 获取goroutine池统计信息
func (*Server) GetMetricsCollector ¶
func (s *Server) GetMetricsCollector() *monitor.MetricsCollector
GetMetricsCollector 获取监控指标收集器
func (*Server) GetObjectPoolStats ¶
GetObjectPoolStats 获取对象池统计信息
func (*Server) HandleConn ¶
HandleConn 用于处理MYSQL的链接
func (*Server) SetDataSource ¶
func (s *Server) SetDataSource(ds domain.DataSource) error
SetDataSource 设置默认数据源
func (*Server) SetDataSourceManager ¶
func (s *Server) SetDataSourceManager(mgr *application.DataSourceManager)
SetDataSourceManager 设置数据源管理器
func (*Server) SetUseOptimizer ¶
SetUseOptimizer 设置是否使用优化器
Directories
¶
| Path | Synopsis |
|---|---|
|
badger
Package badger provides a persistent storage backend using Badger KV store.
|
Package badger provides a persistent storage backend using Badger KV store. |
|
hybrid
Package hybrid provides a hybrid data source that combines memory and persistent storage.
|
Package hybrid provides a hybrid data source that combines memory and persistent storage. |
|
Package workerpool provides a reusable, high-performance worker pool for parallel task execution with dynamic scaling and graceful shutdown.
|
Package workerpool provides a reusable, high-performance worker pool for parallel task execution with dynamic scaling and graceful shutdown. |
Click to show internal directories.
Click to hide internal directories.