rpc

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DialErrMsg = `
Could not connect to local RPC server.
Make sure the Multiverse daemon is up.
See 'multi help daemon' for more info.
`

DialErrMsg is an error message for failed RPC connections.

Functions

func ListenAndServe

func ListenAndServe(server *remote.Server) error

ListenAndServe starts the RPC listener.

func NewClient

func NewClient() (*rpc.Client, error)

NewClient returns a new RPC client.

func ServeHTTP

func ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP serves json rpc connections over http.

Types

type HttpConn

type HttpConn struct {
	// contains filtered or unexported fields
}

HttpConn wraps an HTTP request.

func (*HttpConn) Close

func (c *HttpConn) Close() error

Close does nothing.

func (*HttpConn) Read

func (c *HttpConn) Read(p []byte) (n int, err error)

Read reads bytes from the reader.

func (*HttpConn) Write

func (c *HttpConn) Write(d []byte) (n int, err error)

Write writes bytes to the writer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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