service

package
v0.0.0-...-ab2a60b Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.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 Asn

type Asn struct {
	Data  *AsnData `json: data`
	Error error    `json: error`
}

type AsnData

type AsnData struct {
	Asn         ipisp.ASN `json: asn`
	Country     string    `json: country`
	Registry    string    `json: registry`
	Range       string    `json: range`
	AllocatedAt time.Time `json: allocated_at`
}

type Browser

type Browser struct {
	Data map[string]string
}
type Header map[string]string

type IpInfo

type IpInfo struct {
	Data  *ipinfo.Info `json: data`
	Error error        `json: error`
}

type Svc

type Svc struct {
	Listen     string `json: listen`
	VirusTotal *SvcVt `json: virustotal`
	IpInfo     *SvcIi `json: ipinfo`
	Browser    *SvcBr `json: browser`
	Sentry     *SvcSt `json: sentry`
	Sqreen     *SvcSq `json: sqreen`
}

func (*Svc) GetAsnDetails

func (s *Svc) GetAsnDetails(c echo.Context) error

GetAsnDetails (echo.Context) -> app.GET("/api/v1/asn", svc.GetAsnDetails())

func (*Svc) GetBrowserDetails

func (s *Svc) GetBrowserDetails(c echo.Context) error

GetBrowserDetails (echo.Context) -> app.GET("/api/v1/browser", svc.GetBrowserDetails)

func (*Svc) GetIPInfo

func (s *Svc) GetIPInfo(c echo.Context) error

func (*Svc) GetVirusTotalDetails

func (s *Svc) GetVirusTotalDetails(c echo.Context) error

GetVirusTotalDetails (echo.Context) -> app.GET("/api/v1/virustotal", svc.GetVirusTotalDetails)

type SvcBr

type SvcBr struct {
	Enabled bool `json: enabled`
}

Browser

type SvcIi

type SvcIi struct {
	Enabled bool   `json: enabled`
	ApiKey  string `json: apikey`
}

IpInfo

type SvcSq

type SvcSq struct {
	Enabled bool `json: enabled`
}

Sqreen

type SvcSt

type SvcSt struct {
	Enabled bool   `json: enabled`
	Dsn     string `json: dsn`
}

Sentry

type SvcVt

type SvcVt struct {
	Enabled bool   `json: enabled`
	ApiKey  string `json: apikey`
}

VirusTotal

type Vt

type Vt struct {
	Attributes VtAttributes `json: attributes`
}

type VtAttributes

type VtAttributes struct {
	Last_Analysis_Results      VtLastAnalysisResults `json: last_analysis_results`
	Last_Analysis_Stats        VtLastAnalysisStats   `json: last_analysis_stats`
	Network                    string                `json: network`
	Reputation                 int                   `json: reputation`
	Regional_Internet_Registry string                `json: regional_internet_registry`
	Asn                        int                   `json: asn`
	Country                    string                `json: country`
	As_Owner                   string                `json: as_owner`
	Continent                  string                `json: continent`
}

type VtLastAnalysisResult

type VtLastAnalysisResult struct {
	Category    string `json: category`
	Engine_Name string `json: engine_name`
	Method      string `json: method`
	Result      string `json: result`
}

type VtLastAnalysisResults

type VtLastAnalysisResults map[string]VtLastAnalysisResult

type VtLastAnalysisStats

type VtLastAnalysisStats struct {
	Harmless   int `json: harmless`
	Malicious  int `json: malicious`
	Suspicious int `json: suspicious`
	Timeout    int `json: timeout`
	Undetected int `json: undetected`
}

Jump to

Keyboard shortcuts

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