models

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 1 Imported by: 0

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

type LinkResponse struct {
	URL       string    `json:"url"`
	ExpiresAt time.Time `json:"expires_at"`
}

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

Jump to

Keyboard shortcuts

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