controllers

package
v0.0.0-...-fb11473 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexController

type IndexController struct {
}

IndexController for URL shorten handling

func (*IndexController) GetShortHandler

func (c *IndexController) GetShortHandler(ctx *gin.Context)

GetShortHandler for getting shorten URL querying result

func (*IndexController) IndexHandler

func (c *IndexController) IndexHandler(ctx *gin.Context)

IndexHandler for rendering the index page

func (*IndexController) ShortURLHandler

func (c *IndexController) ShortURLHandler(ctx *gin.Context)

ShortURLHandler for shorten long URL

type InfoController

type InfoController struct {
}

InfoController for URL shorten handling

func (*InfoController) GetURLInfoHandler

func (c *InfoController) GetURLInfoHandler(ctx *gin.Context)

GetURLInfoHandler for rendering the index page

type Response

type Response struct {
	Result  bool   `json:"result"`
	Short   string `json:"short"`
	Message string `json:"message"`
}

Response struct for http response

Jump to

Keyboard shortcuts

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