Documentation
¶
Index ¶
- type App
- func (s *App) GetConfig(w http.ResponseWriter, r *http.Request)
- func (s *App) GetConfigTune(w http.ResponseWriter, r *http.Request)
- func (s *App) Load(w http.ResponseWriter, r *http.Request)
- func (s *App) Route(r chi.Router)
- func (s *App) Status() string
- func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
- func (s *App) UpdateConfigTune(w http.ResponseWriter, r *http.Request)
- type ConfigTune
- type UpdateConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) GetConfigTune ¶
func (s *App) GetConfigTune(w http.ResponseWriter, r *http.Request)
GetConfigTune 获取 Memcached 配置调整参数
func (*App) UpdateConfig ¶
func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
func (*App) UpdateConfigTune ¶
func (s *App) UpdateConfigTune(w http.ResponseWriter, r *http.Request)
UpdateConfigTune 更新 Memcached 配置调整参数
type ConfigTune ¶
type ConfigTune struct {
Port string `form:"port" json:"port"`
UDPPort string `form:"udp_port" json:"udp_port"`
ListenAddress string `form:"listen_address" json:"listen_address"`
Memory string `form:"memory" json:"memory"`
MaxConnections string `form:"max_connections" json:"max_connections"`
Threads string `form:"threads" json:"threads"`
}
ConfigTune Memcached 配置调整
type UpdateConfig ¶
type UpdateConfig struct {
Config string `form:"config" json:"config" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.