httpegress

package
v0.0.0-...-645572e Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package httpegress provides a client constructor for building an HTTP Client for making requests to external services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeClient

func MakeClient(ctx context.Context, cfg Config) (httpx.BasicClient, error)

MakeClient creates a new HTTP BasicClient for making egress requests.

Types

type Config

type Config struct {
	GatewayURL string
	UserAgent  string
}

Config is the configuration for building an HTTP egress client.

func (*Config) RegisterFlags

func (cfg *Config) RegisterFlags(fs *flag.FlagSet)

RegisterFlags registers the flags for building an HTTP egress client.

Jump to

Keyboard shortcuts

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