handlers

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddress

func GetAddress() fiber.Handler

func GetDCIPs

func GetDCIPs(app *app.App) fiber.Handler

todo

func GetDisasableEmails

func GetDisasableEmails(app *app.App) fiber.Handler

func GetEmail

func GetEmail(app *app.App) fiber.Handler

func GetFreeEmails

func GetFreeEmails(app *app.App) fiber.Handler

func GetGenericEmails

func GetGenericEmails(app *app.App) fiber.Handler

func GetHealth

func GetHealth() fiber.Handler

func GetIP

func GetIP(app *app.App) fiber.Handler

func GetProxyIPs

func GetProxyIPs(app *app.App) fiber.Handler

func GetScoreEmail

func GetScoreEmail(app *app.App) fiber.Handler

func GetScoreIP

func GetScoreIP(app *app.App) fiber.Handler

func GetSpamEmails

func GetSpamEmails(app *app.App) fiber.Handler

func GetSpamIPs

func GetSpamIPs(app *app.App) fiber.Handler

func GetTorIPs

func GetTorIPs(app *app.App) fiber.Handler

func GetVPNIPs

func GetVPNIPs(app *app.App) fiber.Handler

func GetValidateEmail

func GetValidateEmail(app *app.App) fiber.Handler

func WriteData

func WriteData(w http.ResponseWriter, httpCode int, str *[]string)

func WriteErrors

func WriteErrors(w http.ResponseWriter, err error)

func WriteJSON

func WriteJSON(w http.ResponseWriter, httpCode int, d interface{})

func WriteNotFound

func WriteNotFound(w http.ResponseWriter, resource string)

Types

type RequestError

type RequestError struct {
	Error string `json:"error"`
}

type ServiceData

type ServiceData struct {
	Result interface{} `json:"result"`
}

type ServiceErrors

type ServiceErrors struct {
	Errors services.FieldErrors `json:"errors"`
}

Jump to

Keyboard shortcuts

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