Documentation ¶
Overview ¶
Package user contains web controllers for listing and adding users.
Index ¶
- Constants
- type Controller
- func (c *Controller) HandleCreate() http.Handler
- func (c *Controller) HandleDelete() http.Handler
- func (c *Controller) HandleExport() http.Handler
- func (c *Controller) HandleImport() http.Handler
- func (c *Controller) HandleImportBatch() http.Handler
- func (c *Controller) HandleIndex() http.Handler
- func (c *Controller) HandleResetPassword() http.Handler
- func (c *Controller) HandleShow() http.Handler
- func (c *Controller) HandleUpdate() http.Handler
- func (c *Controller) HandleUserStats() http.Handler
- func (c *Controller) Show(w http.ResponseWriter, r *http.Request, resetPassword bool)
Constants ¶
View Source
const (
// QueryKeySearch is the query key where the search query exists.
QueryKeySearch = "q"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller manages users
func New ¶
func New( ctx context.Context, authProvider auth.Provider, cacher cache.Cacher, config *config.ServerConfig, db *database.Database, h *render.Renderer) *Controller
New creates a new controller for managing users.
func (*Controller) HandleCreate ¶
func (c *Controller) HandleCreate() http.Handler
func (*Controller) HandleDelete ¶
func (c *Controller) HandleDelete() http.Handler
func (*Controller) HandleExport ¶ added in v0.17.0
func (c *Controller) HandleExport() http.Handler
func (*Controller) HandleImport ¶ added in v0.9.0
func (c *Controller) HandleImport() http.Handler
func (*Controller) HandleImportBatch ¶ added in v0.9.0
func (c *Controller) HandleImportBatch() http.Handler
func (*Controller) HandleIndex ¶
func (c *Controller) HandleIndex() http.Handler
func (*Controller) HandleResetPassword ¶ added in v0.11.1
func (c *Controller) HandleResetPassword() http.Handler
func (*Controller) HandleShow ¶ added in v0.4.0
func (c *Controller) HandleShow() http.Handler
func (*Controller) HandleUpdate ¶ added in v0.4.0
func (c *Controller) HandleUpdate() http.Handler
func (*Controller) HandleUserStats ¶ added in v0.18.0
func (c *Controller) HandleUserStats() http.Handler
func (*Controller) Show ¶ added in v0.11.1
func (c *Controller) Show(w http.ResponseWriter, r *http.Request, resetPassword bool)
Click to show internal directories.
Click to hide internal directories.