client

package
v3.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(client *http.Client, opts ...Option) *http.Client

Types

type Option

type Option func(http.RoundTripper) http.RoundTripper

func WithChaosMonkey

func WithChaosMonkey(srvErrRate, gqlErrRate float64) Option

func WithContentType

func WithContentType(value string) Option

func WithLogger

func WithLogger(log *zap.Logger) Option

func WithTokenGetter

func WithTokenGetter(getter func() (string, error)) Option

func WithUserAgent

func WithUserAgent(version string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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