database

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoUpdateRequired = fmt.Errorf("no update required")

Functions

This section is empty.

Types

type Database

type Database interface {
	IpInfo(ip net.IP) (*domain.IpInfo, error)
	UpdateIpDatabase() (nextUpdate time.Duration, err error)

	Close() error
}

func Connect

func Connect(ctx context.Context, cfg *domain.AppConfig, l *log.Logger) (d Database, err error)

Jump to

Keyboard shortcuts

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