vendorAlist

package
v0.3.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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() 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