server

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 12 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