report

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location added in v0.3.0

type Location struct {
	City         string  `json:"city"`
	Country      string  `json:"country"`
	CountryCode  string  `json:"country_code"`
	Latitude     float32 `json:"latitude"`
	Longitude    float32 `json:"longitude"`
	Organization string  `json:"organization"`
	IP           string  `json:"ip"`
	Region       string  `json:"region"`
	RegionName   string  `json:"region_name"`
	Timezone     string  `json:"timezone"`
	Zip          string  `json:"zip"`
}

Location contains all the relevant data for an IP.

type Report

type Report interface {
	ListRecords() []json.RawMessage
	SetClientLocation(location Location)
	SetMasterLocation(location Location)
}

type Version

type Version struct {
	Version string `json:"version"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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