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"`
}
LinkRequest represents a request to create a shortened URL
type LinkResponse ¶
LinkResponse represents link information
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.