Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
A Client defines all interactions that can be performed on a Plik server.
func NewDefault ¶
NewDefault returns a new Client with default HTTP client.
type Option ¶
type Option func(*Options)
Option is a function used in the Functional Options pattern.
func OneShotFrom ¶
OneShotFrom removes the remote file after the first download.
type Options ¶
type Options struct {
ID string `json:"id"`
Creation int64 `json:"uploadDate"`
TTL int `json:"ttl"`
UploadToken string `json:"uploadToken,omitempty"`
User string `json:"user,omitempty"`
Token string `json:"token,omitempty"`
IsAdmin bool `json:"admin"`
Stream bool `json:"stream"`
OneShot bool `json:"oneShot"`
Removable bool `json:"removable"`
ProtectedByPassword bool `json:"protectedByPassword"`
Login string `json:"login,omitempty"`
Password string `json:"password,omitempty"`
// contains filtered or unexported fields
}
Options contains upload characteristics.
Click to show internal directories.
Click to hide internal directories.