mockserver

package
v0.0.0-...-753386a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ForwardingCachingServer

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

func NewForwardingCachingServer

func NewForwardingCachingServer(logger *zap.Logger, upstreamHost string, cacheDir string, latestFinalBlocks []string) *ForwardingCachingServer

func (*ForwardingCachingServer) ProxyReq

func (s *ForwardingCachingServer) ProxyReq(logger *zap.Logger, req *http.Request) (*http.Request, error)

func (*ForwardingCachingServer) RewriteReq

func (s *ForwardingCachingServer) RewriteReq(reqBody []byte) []byte

func (*ForwardingCachingServer) ServeHTTP

func (s *ForwardingCachingServer) ServeHTTP(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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