rpccommon

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 23 Imported by: 20

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)

func (*RPCCallback) SetupDoneChan added in v1.6.1

func (cb *RPCCallback) SetupDoneChan() chan struct{}

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

SetApiVersion 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 JSON-RPC server. The debugger itself can be stopped with the `detach` API.

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