go-ns

module
v0.0.0-...-ac1c1c5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT

README

go-ns GoDoc

DEPRECATED

This repository is to be considered DEPRECATED. No code should be added to this repository

The following library changes have been made as part of deprecating this repo:

  • The rhttp client has been removed and should no longer be used. Any usage of rhttp should be replaced by dp-net/http.
  • The rchttp client has been moved to a new repo dp-net/http. All imports should be updated accordingly.
  • The API clients have been moved to a new repo dp-api-clients-go. All imports should be updated accordingly.
  • The healthcheck library has been moved to a new repo dp-healthcheck and updated inline with the latest spec. All apps should be updated to use the new health check implementation.
  • The healthcheck client has been reimplemented inline with the latest spec in dp-api-clients-go/health. All clients in dp-api-clients-go have been updated to use this new library so all apps should be updated to use these new clients.
  • The healthcheck handler has been reimplemented inline with the latest spec in dp-healthcheck. All /healthcheck routes should be changed to /health and updated to use this new handler.
  • The elasticsearch client has been moved to dp-elasticsearch. All imports should be updated accordingly.
  • The kafka client has been moved to dp-kafka. All imports should be updated accordingly.
  • The mongo client has been moved to dp-mongodb. All imports should be updated accordingly.
  • The neo4j client has been moved to dp-graph. All usages of the old neo4j library should be replaced with dp-graph using the neo4jdriver.
  • The s3 client has been moved to dp-s3. All imports should be updated accordingly.
  • The vault client has been moved to dp-vault. All imports should be updated accordingly.
  • The log library has been replaced by log.go which has been implemented in line with the new logging standards. A script is provided to automate the replacement of the log library in most common usages.
  • The common library has been moved to dp-net/request. All imports should be updated accordingly.
  • The server library has been moved to dp-net/http. All imports should be updated accordingly.
  • The request library has been moved to dp-net/http. All imports should be updated accordingly.
  • The handlers library has been moved to dp-net/handlers. All imports should be updated accordingly.
  • The identity library has been moved to dp-net/handlers. All imports should be updated accordingly.

Common Go code for ONS apps:

  • Common HTTP handlers for health check, requestID, and reverse proxy
  • A logger which supports structured context-based logging
  • Avro marshal and unmarshal functionality. Marshal function returns the avro encoding of an interface and the unmarshal function allows user to parse avro encoded byte array.
  • Kafka consumer and producer functionality
Licence

Copyright ©‎ 2018, Crown Copyright (Office for National Statistics) (https://www.ons.gov.uk)

Released under MIT license, see LICENSE for details.

Directories

Path Synopsis
Package avro provides a user functionality to return the avro encoding of s.
Package avro provides a user functionality to return the avro encoding of s.
handlers
Package render allows the rendering of different template formats through a given interface
Package render allows the rendering of different template formats through a given interface
zebedee

Jump to

Keyboard shortcuts

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