Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.3.0
type Client struct { HTTP *http.Client URL string Service string PublicKey ed25519.PublicKey PrivateKey ed25519.PrivateKey // contains filtered or unexported fields }
type Downloader ¶
A Downloader retrieves a file by name.
type Service ¶ added in v0.3.0
Service provides HTTP handlers for the CDN.
func (Service) HandleFileDownload ¶ added in v0.3.0
HandleFileDownload is an http.HandlerFunc which loads a file by name and serves it's content.
func (Service) HandleFileUpload ¶ added in v0.3.0
HandleFileUpload is an http.HandlerFunc which parses multipart forms and upserts file objects.
func (Service) HandleLink ¶ added in v0.3.0
HandleLink is an http.HandlerFunc which loads a file by its link and serves it's content.
Click to show internal directories.
Click to hide internal directories.