transport

package
v0.0.0-...-e1d23ae Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(o ...Option) http.RoundTripper

New builds a new Kibana Proxy Transport

Types

type Option

type Option func(*roundTripper)

Option sets options

func WithDebug

func WithDebug() Option

WithDebug enables transport debug logging

func WithHeaders

func WithHeaders(h http.Header) Option

WithHeaders enables request header customization

func WithLogger

func WithLogger(logger *log.Logger) Option

WithLogger enables transport logging customization

func WithRoundTripper

func WithRoundTripper(wrt http.RoundTripper) Option

WithRoundTripper customizes the RoundTripper to wrap

func WithURL

func WithURL(u *url.URL) Option

WithURL sets the base URL for kibana communication

Jump to

Keyboard shortcuts

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