database

package
v0.0.0-...-fac5eb8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service holds the database connection pool.

func NewService

func NewService(cfg *config.DatabaseConfig) (*Service, error)

NewService initializes and returns a new database service.

func (*Service) Close

func (s *Service) Close() error

Close closes the database connection.

func (*Service) QueryOrthometricCorrection

func (s *Service) QueryOrthometricCorrection(lat, lon float64, srcProj, dstProj int) (float64, error)

QueryOrthometricCorrection queries the database for the orthometric correction for given coordinates.

Jump to

Keyboard shortcuts

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