module
0.0.0-20241030091535-cc1b11756418
Repository: https://github.com/onsdigital/go-ns.git
Documentation: pkg.go.dev
# README
go-ns 
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 ofrhttp
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 indp-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 oldneo4j
library should be replaced withdp-graph
using theneo4jdriver
. - 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.
# Packages
No description provided by the author
Package avro provides a user functionality to return the avro encoding of s.
No description provided by the author
No description provided by the author
No description provided by the author
Package render allows the rendering of different template formats through a given interface.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author