es

package
v0.0.0-...-b6cbe2a Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client *elastic.Client
)

Functions

func Store

func Store(ipWithGeos ...config.IPWithGeo)

Store store these ip information in elasticsearch.

Types

type ESIPInfo

type ESIPInfo struct {
	Time     string `json:"time"`
	IP       string `json:"ip"`
	Country  string `json:"country"`
	Region   string `json:"region"`
	City     string `json:"city"`
	ISP      string `json:"isp"`
	Location struct {
		Lon float64 `json:"lon"`
		Lat float64 `json:"lat"`
	} `json:"location"`
}

Jump to

Keyboard shortcuts

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