storeapi

package
v0.0.0-...-80b390f Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogData

type LogData struct {
	ClientIP  string     `db:"client_ip"`
	ServerIP  string     `db:"server_ip"`
	EdnsNet   string     `db:"edns_net"`
	ClientCC  string     `db:"client_cc"`
	ClientRC  string     `db:"client_rc"`
	ServerCC  string     `db:"server_cc"`
	ServerRC  string     `db:"server_rc"`
	EdnsCC    string     `db:"edns_cc"`
	EdnsRC    string     `db:"edns_rc"`
	ClientASN uint       `db:"client_asn"`
	ServerASN uint       `db:"server_asn"`
	EdnsASN   uint       `db:"edns_asn"`
	HasEdns   bool       `db:"has_edns"`
	TestIP    string     `db:"test_ip" json:"-"`
	FirstSeen *time.Time `db:"first_seen" json:"-"`
	LastSeen  *time.Time `db:"last_seen" json:"-"`
}

type RequestData

type RequestData struct {
	ClientIP string
	ServerIP string
	EdnsNet  string
	TestIP   string
}

func (*RequestData) JSON

func (data *RequestData) JSON() ([]byte, error)

Jump to

Keyboard shortcuts

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