Versions in this module Expand all Collapse all v0 v0.0.1 Nov 28, 2024 Changes in this version + const AppID + const AppSecret + const AppVersion + func GetMD5Hash(text string) string + type Addition struct + AppID string + AppSecret string + AppVersion string + RefreshToken string + UploadThread string + type AuthService struct + func (s *AuthService) Close() + func (s *AuthService) GetGrpcConnection() *grpc.ClientConn + func (s *AuthService) OnAccessTokenRefreshed(accessToken string, accessTokenExpiredAt int64, refreshToken string, ...) + type Common struct + type Files pubUserFile.File + func (f *Files) CreateTime() time.Time + func (f *Files) GetHash() utils.HashInfo + func (f *Files) GetID() string + func (f *Files) GetName() string + func (f *Files) GetPath() string + func (f *Files) GetSize() int64 + func (f *Files) IsDir() bool + func (f *Files) ModTime() time.Time + type FilesList struct + Files []*Files + ListInfo *common.ScanListRequest + type HalalCloud struct + func (d *HalalCloud) Config() driver.Config + func (d *HalalCloud) Copy(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *HalalCloud) Drop(ctx context.Context) error + func (d *HalalCloud) GetAddition() driver.Additional + func (d *HalalCloud) GetCurrentDir(dir model.Obj) string + func (d *HalalCloud) GetCurrentOpDir(dir model.Obj, args []string, index int) string + func (d *HalalCloud) Init(ctx context.Context) error + func (d *HalalCloud) IsLogin() bool + func (d *HalalCloud) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error) + func (d *HalalCloud) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error) + func (d *HalalCloud) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) (model.Obj, error) + func (d *HalalCloud) Move(ctx context.Context, srcObj, dstDir model.Obj) (model.Obj, error) + func (d *HalalCloud) NewAuthService(refreshToken string, options ...HalalOption) (*AuthService, error) + func (d *HalalCloud) NewAuthServiceWithOauth(options ...HalalOption) (*AuthService, error) + func (d *HalalCloud) Put(ctx context.Context, dstDir model.Obj, stream model.FileStreamer, ...) (model.Obj, error) + func (d *HalalCloud) Remove(ctx context.Context, obj model.Obj) error + func (d *HalalCloud) Rename(ctx context.Context, srcObj model.Obj, newName string) (model.Obj, error) + func (d *HalalCloud) SetTokenResp(tr *TokenResp) + type HalalCommon struct + type HalalOption interface + func WithGrpcDialOptions(opts ...grpc.DialOption) HalalOption + func WithRefreshTokenRefreshedCallback(...) HalalOption + type ListInfo struct + Limit int64 + OrderBy []*OrderByInfo + Token string + Version int32 + type OrderByInfo struct + Asc bool + Field string + type SteamFile struct + func (s *SteamFile) Close() error + func (s *SteamFile) Read(p []byte) (n int, err error) + type TokenResp struct + AccessToken string + AccessTokenExpiredAt int64 + RefreshToken string + RefreshTokenExpiredAt int64 + type UserInfo struct + CreateTs int64 + Identity string + Name string + UpdateTs int64