geoip

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoIP

type GeoIP struct {
	Database string
}

type Location

type Location struct {
	Country string
	City    string
	Lat     float64
	Lon     float64
}

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string) (*Reader, error)

func (*Reader) Close

func (r *Reader) Close() error

func (*Reader) Location

func (r *Reader) Location(ip netip.Addr) *Location

Jump to

Keyboard shortcuts

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