proxy

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const InfuraURL = "https://%s.infura.io/v3/%s"

Config

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyServer

type ProxyServer struct {
	Port        string
	ProviderUrl string
}

Proxy server

func NewProxyServer

func NewProxyServer(port string, providerUrl string, network string, projectId string) *ProxyServer

Create new proxy server

func (*ProxyServer) ServeHTTP

func (p *ProxyServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Handle request / serve response

func (*ProxyServer) Start

func (p *ProxyServer) Start() error

Start proxy server

Jump to

Keyboard shortcuts

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