Documentation
¶
Index ¶
- type JsonRpcServer
- func (js *JsonRpcServer) RegisterReceiver(name string, rcvr interface{}, metadata string)
- func (js *JsonRpcServer) Run() error
- func (js *JsonRpcServer) SetCors(allowedOrigins []string, allowedMethods []string, allowedHeaders []string, ...)
- func (js *JsonRpcServer) SetCorsAllowAll()
- func (js *JsonRpcServer) SetCorsOptions(corsOpt *server.CORSOptions)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JsonRpcServer ¶
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)
Click to show internal directories.
Click to hide internal directories.