jrpc

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGinWebsocketServer

func NewGinWebsocketServer(host string)

Types

type Conn

type Conn struct {
	C net.Conn
	// contains filtered or unexported fields
}

Websocket connection wrapper to handle JsonRpc communication

type Example

type Example struct{}

func (Example) Simple

func (Example) Simple(x, y int) (int, error)

func (Example) SimpleWithContext

func (Example) SimpleWithContext(ctx context.Context, x, y int) (int, error)

func (Example) Subscription

func (Example) Subscription(ctx context.Context) (registry.Subscription, error)

type Server

type Server struct {
	*registry.Registry
}

func NewServer

func NewServer() *Server

func (*Server) WebsocketHandler

func (s *Server) WebsocketHandler(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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