mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 22:42:15 +08:00
38 lines
807 B
Go
38 lines
807 B
Go
package plugins
|
|
|
|
type (
|
|
IdlePlugin struct {
|
|
Name string
|
|
}
|
|
)
|
|
|
|
func NewIdlePlugin() *IdlePlugin {
|
|
return &IdlePlugin{
|
|
Name: "IdlePlugin",
|
|
}
|
|
}
|
|
|
|
func (p *IdlePlugin) Start() error {
|
|
return nil
|
|
}
|
|
|
|
func (p *IdlePlugin) UploadFilePrepareCallback(context *Context, params *UploadFilePrepareParams) (*UploadFilePrepareResult, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (p *IdlePlugin) UploadFileFinishCallback(context *Context, params *UploadFileFinishParams) error {
|
|
return nil
|
|
}
|
|
|
|
func (p *IdlePlugin) DownloadFilePrepareCallback(context *Context, params *DownloadFilePrepareParams) (*DownloadFilePrepareResult, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (p *IdlePlugin) DownloadFileFinishCallback(context *Context, params *DownloadFileFinishParams) error {
|
|
return nil
|
|
}
|
|
|
|
func (p *IdlePlugin) Stop() error {
|
|
return nil
|
|
}
|