netease_music

package
v3.35.3-8Mi Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	Cookie    string `json:"cookie" type:"text" required:"true" help:""`
	SongLimit uint64 `json:"song_limit" default:"200" type:"number" help:"only get 200 songs by default"`
}

type Characteristic

type Characteristic map[string]string

type HostsResp

type HostsResp struct {
	Upload []string `json:"upload"`
}

type ListResp

type ListResp struct {
	Size    string `json:"size"`
	MaxSize string `json:"maxSize"`
	Data    []struct {
		AddTime    int64  `json:"addTime"`
		FileName   string `json:"fileName"`
		FileSize   int64  `json:"fileSize"`
		SongId     int64  `json:"songId"`
		SimpleSong struct {
			Al struct {
				PicUrl string `json:"picUrl"`
			} `json:"al"`
		} `json:"simpleSong"`
	} `json:"data"`
}

type LyricObj

type LyricObj struct {
	model.Object
	// contains filtered or unexported fields
}

type NeteaseMusic

type NeteaseMusic struct {
	model.Storage
	Addition
	// contains filtered or unexported fields
}

func (*NeteaseMusic) Config

func (d *NeteaseMusic) Config() driver.Config

func (*NeteaseMusic) Copy

func (d *NeteaseMusic) Copy(ctx context.Context, srcObj, dstDir model.Obj) error

func (*NeteaseMusic) Drop

func (d *NeteaseMusic) Drop(ctx context.Context) error

func (*NeteaseMusic) Get

func (d *NeteaseMusic) Get(ctx context.Context, path string) (model.Obj, error)

func (*NeteaseMusic) GetAddition

func (d *NeteaseMusic) GetAddition() driver.Additional

func (*NeteaseMusic) Init

func (d *NeteaseMusic) Init(ctx context.Context) error
func (d *NeteaseMusic) Link(ctx context.Context, file model.Obj, args model.LinkArgs) (*model.Link, error)

func (*NeteaseMusic) List

func (d *NeteaseMusic) List(ctx context.Context, dir model.Obj, args model.ListArgs) ([]model.Obj, error)

func (*NeteaseMusic) MakeDir

func (d *NeteaseMusic) MakeDir(ctx context.Context, parentDir model.Obj, dirName string) error

func (*NeteaseMusic) Move

func (d *NeteaseMusic) Move(ctx context.Context, srcObj, dstDir model.Obj) error

func (*NeteaseMusic) Put

func (*NeteaseMusic) Remove

func (d *NeteaseMusic) Remove(ctx context.Context, obj model.Obj) error

func (*NeteaseMusic) Rename

func (d *NeteaseMusic) Rename(ctx context.Context, srcObj model.Obj, newName string) error

type ReqOption

type ReqOption struct {
	// contains filtered or unexported fields
}

type SongResp

type SongResp struct {
	Data []struct {
		Url string `json:"url"`
	} `json:"data"`
}

Jump to

Keyboard shortcuts

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