url

package
v0.0.0-...-2965246 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotFoundQuery    = "not-found"
	ExpiredQuery     = "expired"
	ThreatQuery      = "threat"
	SlugQuery        = "slug"
	XForwardedHeader = "X-Forwarded-For"
)

Variables

This section is empty.

Functions

func APICreateURL

func APICreateURL(c *gin.Context)

func APIGetURLs

func APIGetURLs(c *gin.Context)

func CreateURL

func CreateURL(c *gin.Context)

func Get

func Get(c *gin.Context)

func GetAnalytics

func GetAnalytics(c *gin.Context)

func GetHomePage

func GetHomePage(c *gin.Context)

func GetNews

func GetNews(c *gin.Context)

func HandleCopySignal

func HandleCopySignal(c *gin.Context)
func HandleDeleteLinks(c *gin.Context)
func HandleGetLinks(c *gin.Context)

Types

type APIResponse

type APIResponse struct {
	Success    bool   `json:"success"`
	Error      string `json:"error,omitempty"`
	Short      string `json:"short"`
	Original   string `json:"original"`
	Password   string `json:"password,omitempty"`
	Expiration int64  `json:"expiration,omitempty"`
	Message    string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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