package
Version:
v0.0.0-...-059eb94
Opens a new window with list of versions in this module.
Published: Apr 17, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BatchOriginal struct {
CorrelationID string `json:"correlation_id"`
OriginalURL string `json:"original_url"`
}
type BatchShort struct {
CorrelationID string `json:"correlation_id"`
ShortURL string `json:"short_url"`
}
type LinkJSON struct {
UUID string `json:"uuid,omitempty"`
Short string `json:"short_url"`
Long string `json:"original_url"`
IsDeleted bool `json:"is_deleted"`
}
type ShortenRequest struct {
URL string `json:"url"`
}
type ShortenResponse struct {
Result string `json:"result"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.