httpmodels

package
v0.0.0-...-bf201e6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddBlockReq

type AddBlockReq struct {
	Handle int64  `json:"handle,omitempty" url:"handle,omitempty"`
	Data   string `json:"data,omitempty" url:"data,omitempty"`
}

type CloseReq

type CloseReq struct {
	Handle int64 `json:"handle,omitempty" url:"handle,omitempty"`
}

type CreateReq

type CreateReq struct {
	Path      string `json:"path,omitempty" url:"path,omitempty"`
	Overwrite bool   `json:"overwrite,omitempty" url:"overwrite,omitempty"`
}

type CreateResp

type CreateResp struct {
	Handle int64 `json:"handle,omitempty" url:"handle,omitempty"`
}

type DeleteReq

type DeleteReq struct {
	Path      string `json:"path,omitempty" url:"path,omitempty"`
	Recursive bool   `json:"recursive,omitempty" url:"recursive,omitempty"`
}

type GetStatusReq

type GetStatusReq struct {
	Path string `json:"path,omitempty" url:"path,omitempty"`
}

type GetStatusResp

type GetStatusResp struct {
	Path             string `json:"path,omitempty" url:"path,omitempty"`
	IsDir            bool   `json:"is_dir,omitempty" url:"is_dir,omitempty"`
	FileSize         int64  `json:"file_size,omitempty" url:"file_size,omitempty"`
	ModificationTime int64  `json:"modification_time,omitempty" url:"modification_time,omitempty"`
}

type ListReq

type ListReq struct {
	Path string `json:"path,omitempty" url:"path,omitempty"`
}

type ListResp

type ListResp struct {
	Files *[]models.FileInfo `json:"files,omitempty" url:"files,omitempty"`
}

type MkdirsReq

type MkdirsReq struct {
	Path string `json:"path,omitempty" url:"path,omitempty"`
}

type MoveReq

type MoveReq struct {
	SourcePath      string `json:"source_path,omitempty" url:"source_path,omitempty"`
	DestinationPath string `json:"destination_path,omitempty" url:"destination_path,omitempty"`
}

type PutReq

type PutReq struct {
	Path      string `json:"path,omitempty" url:"path,omitempty"`
	Contents  string `json:"contents,omitempty" url:"contents,omitempty"`
	Overwrite bool   `json:"overwrite,omitempty" url:"overwrite,omitempty"`
}

type ReadReq

type ReadReq struct {
	Path   string `json:"path,omitempty" url:"path,omitempty"`
	Offset int64  `json:"offset,omitempty" url:"offset,omitempty"`
	Length int64  `json:"length,omitempty" url:"length,omitempty"`
}

type ReadResp

type ReadResp struct {
	BytesRead int64  `json:"bytes_read,omitempty" url:"bytes_read,omitempty"`
	Data      string `json:"data,omitempty" url:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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