rpcsplitter

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerTag = "RPCSPLITTER"

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(endpoints []string, log log.Logger) (http.Handler, error)

Types

type Transport

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

Transport implements the http.RoundTripper interface. It creates a virtual host with RPC Splitter.

func NewTransport

func NewTransport(endpoints []string, vhost string, transport http.RoundTripper, log log.Logger) (*Transport, error)

NewTransport returns a new instance of Transport.

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip implements the http.RoundTripper interface.

Jump to

Keyboard shortcuts

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