rpccommon

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2018 License: MIT Imports: 20 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, logEnabled bool) *ServerImpl

NewServer creates a new RPCServer.

func (*ServerImpl) Restart

func (s *ServerImpl) Restart() error

Restart restarts the debugger.

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(kill bool) 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