rpccommon

package
v1.4.1-0...-9011182 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCCallback

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

func (*RPCCallback) Return

func (cb *RPCCallback) Return(out interface{}, err error)

type RPCServer

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

RPCServer implements the RPC method calls common to all versions of the API.

func (*RPCServer) GetVersion

func (s *RPCServer) GetVersion(args api.GetVersionIn, out *api.GetVersionOut) error

GetVersion returns the version of delve as well as the API version currently served.

func (*RPCServer) SetApiVersion

func (s *RPCServer) SetApiVersion(args api.SetAPIVersionIn, out *api.SetAPIVersionOut) error

Changes version of the API being served.

type ServerImpl

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

ServerImpl implements a JSON-RPC server that can switch between two versions of the API.

func NewServer

func NewServer(config *service.Config) *ServerImpl

NewServer creates a new RPCServer.

func (*ServerImpl) Run

func (s *ServerImpl) Run() error

Run starts a debugger and exposes it with an HTTP server. The debugger itself can be stopped with the `detach` API. Run blocks until the HTTP server stops.

func (*ServerImpl) Stop

func (s *ServerImpl) Stop() error

Stop stops the JSON-RPC server.

Jump to

Keyboard shortcuts

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