vendorAlist

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binds added in v0.3.2

func Binds(ctx *gin.Context)

func List

func List(ctx *gin.Context)

func Login

func Login(ctx *gin.Context)

func Logout

func Logout(ctx *gin.Context)

func Me

func Me(ctx *gin.Context)

Types

type AlistBindsResp added in v0.3.2

type AlistBindsResp []*struct {
	ServerID string `json:"serverID"`
	Host     string `json:"host"`
}

type AlistFSListResp

type AlistFSListResp = model.VendorFSListResp[*AlistFileItem]

type AlistFileItem

type AlistFileItem struct {
	*model.Item
	Size     uint64 `json:"size"`
	Modified uint64 `json:"modified"`
}

type AlistMeResp

type AlistMeResp = model.VendorMeResp[*alist.MeResp]

type ListReq

type ListReq struct {
	Path     string `json:"path"`
	Password string `json:"password"`
	Refresh  bool   `json:"refresh"`
}

func (*ListReq) Decode

func (r *ListReq) Decode(ctx *gin.Context) error

func (*ListReq) Validate

func (r *ListReq) Validate() (err error)

type LoginReq

type LoginReq struct {
	Host           string `json:"host"`
	Username       string `json:"username"`
	Password       string `json:"password"`
	HashedPassword string `json:"hashedPassword"`
}

func (*LoginReq) Decode

func (r *LoginReq) Decode(ctx *gin.Context) error

func (*LoginReq) Validate

func (r *LoginReq) Validate() error

Jump to

Keyboard shortcuts

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