helper

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTestLoggerClient

func GetTestLoggerClient(t *testing.T) rpc.Client

func GetTestRpcClient

func GetTestRpcClient(t *testing.T) rpc.Client

func NewTestLoggerDecorator

func NewTestLoggerDecorator(handler rpc.Handler) rpc.Handler

func NewTestRetriesDecorator

func NewTestRetriesDecorator(
	handler rpc.Handler,
	retiesCount int,
	retriesSeconds time.Duration,
) rpc.Handler

func TestRpcClient

func TestRpcClient(endpoint string) rpc.Client

func TestRpcHttpHandler

func TestRpcHttpHandler(endpoint string, client *http.Client) rpc.Handler

TestRpcHttpHandler is a default handler that uses http.DefaultClient

Types

type LogTestTransport

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

func (*LogTestTransport) RoundTrip

func (l *LogTestTransport) RoundTrip(request *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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