internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugTransport = &LogTransport{
	transport: http.DefaultTransport,
}

Functions

func New

func New(opts ...OptionFunc) provider.Provider

New is a helper function to simplify provider server and testing implementation.

func NewDebugTransport

func NewDebugTransport(innerTransport http.RoundTripper) http.RoundTripper

Types

type LogTransport

type LogTransport struct {
	// contains filtered or unexported fields
}

func (*LogTransport) RoundTrip

func (c *LogTransport) RoundTrip(request *http.Request) (*http.Response, error)

type OptionFunc

type OptionFunc func(p *folgeProvider)

func WithDebugClient

func WithDebugClient() OptionFunc

func WithRecorderClient

func WithRecorderClient(file string, mode recorder.Mode) (OptionFunc, func() error)

func WithRetryableClient

func WithRetryableClient(retries int) OptionFunc

Directories

Path Synopsis
Package folge provides primitives to interact with the openapi HTTP API.
Package folge provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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