pikpak

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLinkAccessInfos added in v0.4.0

func GetLinkAccessInfos(ctx context.Context, originalLinkHash string) ([]string, error)

GetLinkAccessInfos get link access log list

func New

func New(d *hosts.Dependencies) hosts.Host

New create a PikPak host.

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 (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) Delete

func (p *PikPak) Delete(ctx context.Context, userID string, originalLinks []string) error

Delete delete shared links by 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.

func (*PikPak) GetStatuses

func (p *PikPak) GetStatuses(ctx context.Context, _ string, hostSharedLinks []string) (statuses map[string]share.State, err error)

GetStatuses return the statuses of each host shared link.

func (*PikPak) HostInfo

func (p *PikPak) HostInfo(ctx context.Context, userID string, options map[string]any) (resp map[string]any, err error)

HostInfo returns basic information of the host.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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