Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Server string `yaml:"server"`
AutoCopyClipboard bool `yaml:"auto_copy_clipboard"`
}
Config represents the CLI configuration
type IPResponse ¶
type IPResponse struct {
IP string `json:"ip"`
}
IPResponse represents the response from the IP endpoint
type LinkRequest ¶
type LinkRequest struct {
URL string `json:"url"`
Encrypted bool `json:"encrypted"`
OneTime bool `json:"onetime"`
}
LinkRequest represents a request to create a shortened URL
type LinkResponse ¶
LinkResponse represents link information
type PasteRequest ¶ added in v0.5.0
type PasteRequest struct {
Content string `json:"content"`
Language string `json:"language,omitempty"`
Encrypted bool `json:"encrypted"`
OneTime bool `json:"onetime"`
}
PasteRequest represents a request to create a paste
type PasteResponse ¶ added in v0.5.0
type PasteResponse struct {
Data string `json:"data"`
}
PasteResponse represents the response from getting a paste
type SecretRequest ¶
type SecretRequest struct {
Data string `json:"data"`
}
SecretRequest represents a request to create a secret
type SecretResponse ¶
type SecretResponse struct {
Short string `json:"short"`
}
SecretResponse represents the response from creating a secret
type VersionResponse ¶
type VersionResponse struct {
Version string `json:"version"`
Commit string `json:"commit"`
Date string `json:"date"`
}
VersionResponse represents version information
Click to show internal directories.
Click to hide internal directories.