Categorygithub.com/GeoNet/kit
module
0.0.0-20250310215609-16c172e8e603
Repository: https://github.com/geonet/kit.git
Documentation: pkg.go.dev

# README

Kit

Common packages for GeoNet applications.

Protobuf Definitions

Protobuf definitions are stored in the protobuf dir. Go pkgs are generated from these files with a _pb suffix e.g., haz_pb is generated from protobuf/haz. Go protobuf pkgs import google.golang.org/protobuf/proto this is not vendored here. Pkgs are tested against the latest version of google.golang.org/protobuf/proto.

(06/Aug/2021) Currently github.com/golang/groupcache is still using github.com/golang/protobuf thus an indirect still in go.mod. Need to keep watching if groupcache has migrated so we can get rid of this.

Go Packages

gloria_pb

a generated pkg for gloria protobuf messages.

haz_pb

a generated pkg for haz protobuf messages.

metrics

metrics is for gathering metrics.

mmi

mmi is for Modificed Mercalli Intensity calculations in New Zealand.

sc3ml

sc3ml is for working with SeisComPML files.

seis

  • seis/ms is for working with miniSEED data.
  • seis/sl is for working with SEEDlink servers.
  • seis/dl is for working with datalink servers.

shake

shake is for PGA, PGV, and MMI calculations

weft

weft helps with web applications.

wgs84

wgs84 is for distance, bearing, and locality calculations on the WGS84 ellipsoid.

cfg

cfg helps read Postgres configuration from env var.

# Packages

No description provided by the author
Package cfg is for reading config from environment variables.
No description provided by the author
No description provided by the author
gloria_pb is generated from the protobuf specification at https://github.com/GeoNet/delta/tree/master/protobuf/gloria With delta checked out it can be generated using protoc --proto_path=../delta/protobuf/gloria --go_out=internal/gloria_pb ../delta/protobuf/gloria/gloria.proto.
No description provided by the author
No description provided by the author
map180 draws SVG maps on EPSG3857.
pkg metrics is for gathering metrics.
Package mmi is for Modificed Mercalli Intensity calculations in New Zealand.
Package sc3ml is for parsing SeisComPML.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
weft helps with web applications.
Package wgs84 is for distance, bearing, and locality calculations on the WGS84 ellipsoid.