Documentation
¶
Index ¶
- func GetLinkAccessInfos(ctx context.Context, originalLinkHash string) ([]string, error)
- func New(d *hosts.Dependencies) hosts.Host
- type PikPak
- func (p *PikPak) AddEventListener(event hosts.EventType, callback hosts.ListenerCallback)
- func (p *PikPak) CreateFromLinks(ctx context.Context, keepShareUserID string, originalLinks []string, ...) (sharedLinks map[string]*share.Share, err error)
- func (p *PikPak) Delete(ctx context.Context, userID string, originalLinks []string) error
- func (p *PikPak) GetStatistics(ctx context.Context, userID string, hostSharedLinks []string) (details map[string]share.Statistics, err error)
- func (p *PikPak) GetStatuses(ctx context.Context, _ string, hostSharedLinks []string) (statuses map[string]share.State, err error)
- func (p *PikPak) HostInfo(ctx context.Context, userID string, options map[string]any) (resp map[string]any, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLinkAccessInfos ¶ added in v0.4.0
GetLinkAccessInfos get link access log list
Types ¶
type PikPak ¶
type PikPak struct { *hosts.Dependencies // contains filtered or unexported fields }
PikPak official website: https://mypikpak.com/
func (*PikPak) AddEventListener ¶ added in v0.3.0
func (p *PikPak) AddEventListener(event hosts.EventType, callback hosts.ListenerCallback)
func (*PikPak) CreateFromLinks ¶
func (p *PikPak) CreateFromLinks(ctx context.Context, keepShareUserID string, originalLinks []string, createBy string) (sharedLinks map[string]*share.Share, err error)
CreateFromLinks create shared links based on the input original links.
func (*PikPak) GetStatistics ¶
func (p *PikPak) GetStatistics(ctx context.Context, userID string, hostSharedLinks []string) (details map[string]share.Statistics, err error)
GetStatistics return the statistics of each host shared link.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.