rpc

package
v0.0.0-...-0928cd4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

func CreateCertificate(serverName string) *tls.Config

func NewAndStartServer

func NewAndStartServer(vc *chains.VirtualChain, rootDir string, rpcAddr, wsAddr, rpcAddrSecure, wsAddrSecure, corsDomain string, logger tmlog.Logger) (tmservice.Service, error)

func NewServer

func NewServer(rpcAddr, wsAddr, rpcAddrSecure, wsAddrSecure, corsDomain, certFile, keyFile string,
	serverCfg *tmrpcserver.Config, backend api.BackendService,
	logger tmlog.Logger, unlockedKeys []string,
	httpAPI string, wsAPI string) tmservice.Service

func ServeTLSWithSelfSignedCertificate

func ServeTLSWithSelfSignedCertificate(
	listener net.Listener,
	handler http.Handler,
	config *tmrpcserver.Config,
	logger tmlog.Logger,
) error

Types

type Server

type Server struct {
	tmservice.BaseService
	// contains filtered or unexported fields
}

func (*Server) OnStart

func (server *Server) OnStart() error

func (*Server) OnStop

func (server *Server) OnStop()

func (*Server) StopHttpsListener

func (server *Server) StopHttpsListener()

Directories

Path Synopsis
api
filters
Package filters implements an ethereum filtering system for block, transactions and log events.
Package filters implements an ethereum filtering system for block, transactions and log events.

Jump to

Keyboard shortcuts

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