server

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.0.0"

Version of server package

Variables

This section is empty.

Functions

func RunServer

func RunServer(addr string)

RunServer method to run server

Types

type Request

type Request struct {
	AddrStrings []string `json:"addr_strings,omitempty"`
	Force       bool     `json:"force"`
}

Request for getting result as boolean (in case of query) or details.

type Response

type Response struct {
	Results    []*hitrssl.SSL `json:"results"`
	Error      string         `json:"error,omitempty"`
	StatusCode int            `json:"status_code"`
}

Response for sending results from API

Jump to

Keyboard shortcuts

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