utilJsonRpc

package
v0.0.0-...-5f3621a Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MulanPSL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonRpcServer

type JsonRpcServer struct {
	Server *server.Server
	// contains filtered or unexported fields
}

func NewServer

func NewServer(addr string) *JsonRpcServer

func (*JsonRpcServer) RegisterReceiver

func (js *JsonRpcServer) RegisterReceiver(name string, rcvr interface{}, metadata string)

func (*JsonRpcServer) Run

func (js *JsonRpcServer) Run() error

func (*JsonRpcServer) SetCors

func (js *JsonRpcServer) SetCors(allowedOrigins []string, allowedMethods []string, allowedHeaders []string, allowCredentials bool)

func (*JsonRpcServer) SetCorsAllowAll

func (js *JsonRpcServer) SetCorsAllowAll()

func (*JsonRpcServer) SetCorsOptions

func (js *JsonRpcServer) SetCorsOptions(corsOpt *server.CORSOptions)

Jump to

Keyboard shortcuts

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