Documentation
¶
Index ¶
- type ProxyServer
- func (p *ProxyServer) ClearPendingTxs()
- func (p *ProxyServer) ClientURL() string
- func (p *ProxyServer) DebugResponse(method string, params json.RawMessage, respBody []byte)
- func (p *ProxyServer) OverrideRequest(method string, rawParams json.RawMessage) (bool, json.RawMessage, error)
- func (p *ProxyServer) PendingTxs() []*ethTypes.Transaction
- func (p *ProxyServer) Run(ctx context.Context) error
- func (p *ProxyServer) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyServer ¶
type ProxyServer struct {
// contains filtered or unexported fields
}
func NewProxyServer ¶
func NewProxyServer(clientURL string, log log.Logger, port int, mempool *mempool.StaticWorkloadMempool) *ProxyServer
func (*ProxyServer) ClearPendingTxs ¶
func (p *ProxyServer) ClearPendingTxs()
func (*ProxyServer) ClientURL ¶
func (p *ProxyServer) ClientURL() string
func (*ProxyServer) DebugResponse ¶
func (p *ProxyServer) DebugResponse(method string, params json.RawMessage, respBody []byte)
func (*ProxyServer) OverrideRequest ¶
func (p *ProxyServer) OverrideRequest(method string, rawParams json.RawMessage) (bool, json.RawMessage, error)
func (*ProxyServer) PendingTxs ¶
func (p *ProxyServer) PendingTxs() []*ethTypes.Transaction
func (*ProxyServer) Stop ¶
func (p *ProxyServer) Stop()
Stop stops both the proxy server and the underlying client
Click to show internal directories.
Click to hide internal directories.