clients

package module
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: MIT Imports: 2 Imported by: 0

README

dp-api-clients-go Build Status GoDoc

Common client code - in go - for ONS APIs:

  • clientlog - logging
  • codelist
  • dataset
  • filter
  • headers - common API request headers
  • healthcheck -> health
  • hierarchy
  • identity
  • importapi
  • renderer
  • search
Package docs
Tests

Run tests using make test

Licence

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

Released under MIT license, see LICENSE for details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient struct {
	BaseURL    string
	HTTPClient rchttp.Clienter
	Lock       sync.RWMutex
}

APIClient represents a common structure for any api client

Directories

Path Synopsis
headers package provides header name constants and get/set functions for commonly used http headers in the dp-api-clients-go repo.
headers package provides header name constants and get/set functions for commonly used http headers in the dp-api-clients-go repo.

Jump to

Keyboard shortcuts

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