Documentation
¶
Overview ¶
Package server provides the XxSql server implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer wraps the HTTP API server.
func NewHTTPServer ¶
func NewHTTPServer(server *Server, bind string, port int) *HTTPServer
NewHTTPServer creates a new HTTP server.
type MySQLServer ¶
type MySQLServer struct {
// contains filtered or unexported fields
}
MySQLServer wraps the MySQL protocol server.
func NewMySQLServer ¶
func NewMySQLServer(server *Server, bind string, port int) *MySQLServer
NewMySQLServer creates a new MySQL server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the XxSql server.
func (*Server) GetStats ¶
func (s *Server) GetStats() ServerStats
GetStats returns server statistics.
func (*Server) SetConfigPath ¶ added in v0.0.7
SetConfigPath sets the configuration file path for saving updates.
Click to show internal directories.
Click to hide internal directories.