pureftpd

package
v0.0.0-...-d8a4e70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct{}

func NewApp

func NewApp() *App

func (*App) ChangePassword

func (s *App) ChangePassword(w http.ResponseWriter, r *http.Request)

ChangePassword 修改密码

func (*App) Create

func (s *App) Create(w http.ResponseWriter, r *http.Request)

Create 创建用户

func (*App) Delete

func (s *App) Delete(w http.ResponseWriter, r *http.Request)

Delete 删除用户

func (*App) GetPort

func (s *App) GetPort(w http.ResponseWriter, r *http.Request)

GetPort 获取端口

func (*App) List

func (s *App) List(w http.ResponseWriter, r *http.Request)

List 获取用户列表

func (*App) Route

func (s *App) Route(r chi.Router)

func (*App) UpdatePort

func (s *App) UpdatePort(w http.ResponseWriter, r *http.Request)

UpdatePort 设置端口

type ChangePassword

type ChangePassword struct {
	Username string `form:"username" json:"username" validate:"required"`
	Password string `form:"password" json:"password" validate:"required|password"`
}

type Create

type Create struct {
	Username string `form:"username" json:"username" validate:"required"`
	Password string `form:"password" json:"password" validate:"required|password"`
	Path     string `form:"path" json:"path" validate:"required"`
}

type Delete

type Delete struct {
	Username string `form:"username" json:"username" validate:"required"`
}

type UpdatePort

type UpdatePort struct {
	Port uint `form:"port" json:"port" validate:"required|number|min:1|max:65535"`
}

type User

type User struct {
	Username string `json:"username"`
	Path     string `json:"path"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL