connection

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package connection is responsible for setting up JSON RPC 2.0 connection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJSONRPC2

func NewJSONRPC2(ctx context.Context, stream io.ReadWriteCloser, handler JSONRPC2Handler) *jsonrpc2.Conn

NewJSONRPC2 creates a new JSON RPC 2.0 connection.

Types

type JSONRPC2Handler

type JSONRPC2Handler func(context.Context, *jsonrpc2.Conn, *jsonrpc2.Request) (result interface{}, err error)

Jump to

Keyboard shortcuts

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