server

package
v0.0.0-...-a619f91 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(allowedEmails []string) gin.HandlerFunc

Types

type RequestHandler

type RequestHandler struct {
	// contains filtered or unexported fields
}

func (*RequestHandler) ParseURL

func (rh *RequestHandler) ParseURL(ctx *gin.Context)

func (*RequestHandler) Test

func (rh *RequestHandler) Test(ctx *gin.Context)

type Router

type Router struct {
	*gin.Engine
}

func NewRouter

func NewRouter(c *config.Config, requestHandler *RequestHandler) (*Router, error)

func (*Router) Serve

func (r *Router) Serve(addr string) error

type URLParsingRequest

type URLParsingRequest struct {
	URL string `form:"URL" binding:"required" example:"https://www.instagram.com/p/C7h7ksJOBvc/"`
}

Jump to

Keyboard shortcuts

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