Documentation ¶
Overview ¶
package abstract class
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string `json:"name"` LocalSort bool `json:"local_sort"` OnlyLocal bool `json:"only_local"` OnlyProxy bool `json:"only_proxy"` NoCache bool `json:"no_cache"` NoUpload bool `json:"no_upload"` NeedMs bool `json:"need_ms"` // if need get message from user, such as validate code DefaultRoot string `json:"default_root"` CheckStatus bool `json:"-"` Alert string `json:"alert"` //info,success,warning,danger NoOverwriteUpload bool `json:"-"` }
Config
type ICreateReq ¶
type ICreateReq interface { GetContentMd5() string GetSlickMd5() string GetBlockMd5() []string GetSize() string GetName() string GetDir() string }
ICreateReq
type IStreamFile ¶
IStreamFile
type Readder ¶
type Readder interface { Link(context.Context, IDir) (ILink, error) GetCap(context.Context) (int64, error) }
Readder
type TokenResp ¶
type TokenResp struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` }
TokenResp
type Writter ¶
type Writter interface { Upload(context.Context, *pb.UploadRequest) (*pb.UploadReply, error) Download(context.Context, *pb.DownloadRequest) (*pb.DownloadReply, error) Remove(context.Context, IDir) error }
Writter
Click to show internal directories.
Click to hide internal directories.