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) Update(w http.ResponseWriter, r *http.Request)
- func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
- type Create
- type Delete
- type Module
- type Update
- type UpdateConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct{}
func (*App) UpdateConfig ¶
func (s *App) UpdateConfig(w http.ResponseWriter, r *http.Request)
type Create ¶
type Create struct { Name string `form:"name" json:"name" validate:"required"` Path string `form:"path" json:"path" validate:"required"` Comment string `form:"comment" json:"comment"` AuthUser string `form:"auth_user" json:"auth_user" validate:"required"` Secret string `form:"secret" json:"secret" validate:"required"` HostsAllow string `form:"hosts_allow" json:"hosts_allow"` }
type Update ¶
type Update struct { Name string `form:"name" json:"name" validate:"required"` Path string `form:"path" json:"path" validate:"required"` Comment string `form:"comment" json:"comment"` AuthUser string `form:"auth_user" json:"auth_user" validate:"required"` Secret string `form:"secret" json:"secret" validate:"required"` HostsAllow string `form:"hosts_allow" json:"hosts_allow"` }
type UpdateConfig ¶
type UpdateConfig struct {
Config string `form:"config" json:"config" validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.