models

package
v0.0.0-...-059eb94 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchOriginal

type BatchOriginal struct {
	CorrelationID string `json:"correlation_id"`
	OriginalURL   string `json:"original_url"`
}

type BatchShort

type BatchShort struct {
	CorrelationID string `json:"correlation_id"`
	ShortURL      string `json:"short_url"`
}

type LinkInfo

type LinkInfo struct {
	Long      string
	UUID      string
	IsDeleted bool
}

type LinkJSON

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

type ShortenRequest struct {
	URL string `json:"url"`
}

type ShortenResponse

type ShortenResponse struct {
	Result string `json:"result"`
}

Jump to

Keyboard shortcuts

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