external

package
v0.0.0-...-cf36328 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupFlags

func SetupFlags(f *pflag.FlagSet, v *viper.Viper, key string, service string)

Types

type External

type External struct {
	URL     *url.URL    `json:"url" yaml:"url" mapstructure:"url"`
	Headers http.Header `json:"headers" yaml:"headers" mapstructure:"headers"`
}

func New

func New(v *viper.Viper, name string) (*External, error)

func (*External) NewRequest

func (c *External) NewRequest(ctx context.Context, method, path string, body io.Reader) (*http.Request, error)

Jump to

Keyboard shortcuts

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