client

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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