Versions in this module Expand all Collapse all v1 v1.0.1 Jul 6, 2023 v1.0.0 Dec 2, 2022 Changes in this version + type ApiServer struct + func NewApiServer(cfg *config.Config, srv *server.Server) (*ApiServer, error) + func (s *ApiServer) AddAllowIps(c echo.Context) error + func (s *ApiServer) AddOneBlackSQL(c echo.Context) error + func (s *ApiServer) AddOneSlave(c echo.Context) error + func (s *ApiServer) ChangeMasterStatus(c echo.Context) error + func (s *ApiServer) ChangeProxyStatus(c echo.Context) error + func (s *ApiServer) ChangeSlaveStatus(c echo.Context) error + func (s *ApiServer) CheckAuth(username, password string, ctx echo.Context) (bool, error) + func (s *ApiServer) DelAllowIps(c echo.Context) error + func (s *ApiServer) DelOneBlackSQL(c echo.Context) error + func (s *ApiServer) DeleteOneSlave(c echo.Context) error + func (s *ApiServer) GetAllBlackSQL(c echo.Context) error + func (s *ApiServer) GetAllowIps(c echo.Context) error + func (s *ApiServer) GetNodesStatus(c echo.Context) error + func (s *ApiServer) GetProxySchema(c echo.Context) error + func (s *ApiServer) GetProxyStatus(c echo.Context) error + func (s *ApiServer) GetSlowLogTime(c echo.Context) error + func (s *ApiServer) RegisterMiddleware() + func (s *ApiServer) RegisterURL() + func (s *ApiServer) Run() error + func (s *ApiServer) SaveProxyConfig(c echo.Context) error + func (s *ApiServer) SetSlowLogTime(c echo.Context) error + func (s *ApiServer) SwitchSlowSQL(c echo.Context) error + type DBStatus struct + Address string + CacheConn int + IdleConn int + LastPing string + MaxConn int + Node string + PopConnCount int64 + PushConnCount int64 + Status string + Type string + type ShardConfig struct + DB string + DateRange []string + Key string + Locations []int + Nodes []string + Table string + TableRowLimit int + Type string + User string