web3

package
v0.0.0-...-3442dc8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-2.0 Imports: 13 Imported by: 0

README

generate key pair for https test:

git clone https://github.com/michaelklishin/tls-gen

cd tls-gen/basic

make CN=localhost

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerWapper

func HandlerWapper(f http.HandlerFunc) http.HandlerFunc

func JsonParamsToStruct

func JsonParamsToStruct(msg json.RawMessage, data interface{}) error

func StartServer

func StartServer(config Web3ServerConfiguration, apiServant servant.APIServant)

Types

type Web3Server

type Web3Server struct {
	MaxHeader int
	MaxBody   int
	// contains filtered or unexported fields
}

func InitWeb3Server

func InitWeb3Server(config Web3ServerConfiguration, apiServant servant.APIServant) *Web3Server

func (*Web3Server) RegisterMethodHandler

func (w *Web3Server) RegisterMethodHandler()

func (*Web3Server) ServeHttp

func (w *Web3Server) ServeHttp(res http.ResponseWriter, req *http.Request)

type Web3ServerConfiguration

type Web3ServerConfiguration struct {
	MaxHeader    int
	MaxBody      int
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	HttpPort     string
	HttpHost     string
	HttpsPost    string
	HttpsHost    string
}

Directories

Path Synopsis
eth
types/eth_account
Package common contains various helper functions.
Package common contains various helper functions.
types/hexutil
Package hexutil implements hex encoding with 0x prefix.
Package hexutil implements hex encoding with 0x prefix.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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