jsonrpc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jsonrpc provides utilities for working with the JSON-RPC protocol. You may use this package if you wish to implement your own JSON-RPC server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(data []byte, _ bool) (advance int, token []byte, err error)

Split is a bufio.SplitFunc that splits JSON-RPC messages.

func Write

func Write(w io.Writer, message any) error

Write writes the given JSON-encodable message using the JSON-RPC protocol.

func WritePayload

func WritePayload(w io.Writer, payload []byte) error

WritePayload writes the given JSON payload using the JSON-RPC protocol.

Types

This section is empty.

Jump to

Keyboard shortcuts

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