portchecker

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct{}

API Port Checker API

func (API) Check

func (API) Check(c *gin.Context)

Check /api/portchecker/check @Summary Check if host port is open for tcp or udp pconnections. @Description Check if host port is open for tcp or udp pconnections. @Tags Lookup @Accept json @Produce json,xml @Param "" body Request true "Request JSON" @Success 200 {object} data.APIResponse @Failure 400 {object} data.APIResponse @Failure 429 {object} data.APIResponse @Router /api/portchecker/check [post]

type Request

type Request struct {
	Host     string `json:"host" xml:"host" form:"host" binding:"required"`
	Port     int    `json:"port" xml:"port" form:"port" binding:"required"`
	PortType string `json:"type" xml:"type" form:"type" binding:"required"`
}

Request port checker request

Jump to

Keyboard shortcuts

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