mmdb

package
v0.0.0-...-330397d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() (p ip2region.Provider, err error)

func Open

func Open(ctx context.Context, dbFile string, options *Options) (p ip2region.Provider, err error)

Types

type Options

type Options struct {
	DownloadUrl string
}

type Provider

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

func (*Provider) Close

func (d *Provider) Close() (err error)

func (*Provider) Search

func (d *Provider) Search(_ context.Context, ip string, langs ...string) (out *ip2region.Result, err error)

func (*Provider) Update

func (d *Provider) Update(ctx context.Context) (err error)

Jump to

Keyboard shortcuts

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