actions

package
v0.0.0-...-7ed03d2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUrlPair

func CreateUrlPair(c *gin.Context)

func GetHelloWorld

func GetHelloWorld(c *gin.Context)

func ListUrlPairs

func ListUrlPairs(c *gin.Context)

func MapRoutes

func MapRoutes(router *gin.Engine)

func Redirect

func Redirect(c *gin.Context)

func SetupMiddlewares

func SetupMiddlewares(router *gin.Engine, db *gorm.DB, kafkaWriters map[string]*kafkalib.Writer)

Types

type CreateUrlPairInput

type CreateUrlPairInput struct {
	Short string `json:"short"`
	Long  string `json:"long" binding:"required"`
}

type UpdateUrlPairInput

type UpdateUrlPairInput struct {
	Short string `json:"short"`
	Long  string `json:"long"`
}

Jump to

Keyboard shortcuts

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