package
0.1.15
Repository: https://github.com/kong/sdk-konnect-go.git
Documentation: pkg.go.dev

# README

Configuration through environment variables

This SDK can be configured via the environment variables.

Konnect domain

Konnect domain can be customized via KONG_CUSTOM_DOMAIN environment variable. This is useful when testing against a development environment or a custom domain. This is optional and the default value is konghq.com.

Request and response logging

Request and response logging can be enabled via:

  • KONNECT_SDK_HTTP_DUMP_REQUEST: Set to true to log request bodies.
  • KONNECT_SDK_HTTP_DUMP_RESPONSE: Set to true to log response bodies.
  • KONNECT_SDK_HTTP_DUMP_RESPONSE_ERROR: Set to true to log response bodies only when the response status code is an error.

# Functions

No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
HTTPDumpRequestHook is a hook that dumps the request to stdout.
HTTPDumpResponseErrorHook is a hook that dumps the error response to stdout.
HTTPDumpResponseHook is a hook that dumps the response to stdout.
No description provided by the author

# Interfaces

HTTPClient provides an interface for supplying the SDK with a custom HTTP client.