Documentation
¶
Index ¶
- type App
- func (s *App) Create(w http.ResponseWriter, r *http.Request)
- func (s *App) Delete(w http.ResponseWriter, r *http.Request)
- func (s *App) GetConfig(w http.ResponseWriter, r *http.Request)
- func (s *App) List(w http.ResponseWriter, r *http.Request)
- func (s *App) Route(r chi.Router)
- func (s *App) Status(ctx context.Context) string
- func (s *App) Update(w http.ResponseWriter, r *http.Request)
- func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
- type Module
- type ModuleName
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) UpdateConfig ¶
func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
type Module ¶
type Module struct {
Name string `form:"name" json:"name" validate:"required && regex:\"^[a-zA-Z0-9_.-]+$\""`
Path string `json:"path" validate:"required && unix_path"`
Comment string `json:"comment"`
ReadOnly bool `json:"read_only"`
AuthUser string `json:"auth_user" validate:"required"`
Secret string `json:"secret" validate:"required"`
HostsAllow string `json:"hosts_allow"`
}
type ModuleName ¶ added in v3.3.2
type ModuleName struct {
Name string `form:"name" json:"name" validate:"required && regex:\"^[a-zA-Z0-9_.-]+$\""`
}
Click to show internal directories.
Click to hide internal directories.