Documentation ¶
Index ¶
- Constants
- Variables
- func NewInventory(ctx context.Context, upstreamStartOption upstream.StartOption, ...) (*inventory, error)
- type CommandOut
- type ContinueIn
- type ContinueOut
- type CreateOrDeleteBreakpointIn
- type CreateOrDeleteBreakpointOut
- type DownIn
- type DownOut
- type EvaluateIn
- type EvaluateOut
- type ListGoroutinesIn
- type ListGoroutinesOut
- type LoggingRPCHandler
- func (h *LoggingRPCHandler) Continue(request *ContinueIn, response *ContinueOut) error
- func (h *LoggingRPCHandler) CreateOrDeleteBreakpoint(request *CreateOrDeleteBreakpointIn, response *CreateOrDeleteBreakpointOut) error
- func (h *LoggingRPCHandler) Down(request *DownIn, response *DownOut) error
- func (h *LoggingRPCHandler) Evaluate(request *EvaluateIn, response *EvaluateOut) error
- func (h *LoggingRPCHandler) Foo(request map[string]interface{}, response *map[string]interface{}) error
- func (h *LoggingRPCHandler) GetNextEvent(request map[string]interface{}, response *map[string]interface{}) error
- func (h *LoggingRPCHandler) Initialize(request map[string]interface{}, response *map[string]interface{}) error
- func (h *LoggingRPCHandler) ListBreakpoints(request map[string]interface{}, response *map[string]interface{}) error
- func (h *LoggingRPCHandler) ListGoroutines(request *ListGoroutinesIn, response *ListGoroutinesOut) error
- func (h *LoggingRPCHandler) Next(request *NextIn, response *NextOut) error
- func (h *LoggingRPCHandler) Step(request *StepIn, response *StepOut) error
- func (h *LoggingRPCHandler) Stepout(request *StepoutIn, response *StepoutOut) error
- func (h *LoggingRPCHandler) SwitchGoroutine(request *SwitchGoroutineIn, response *CommandOut) error
- func (h *LoggingRPCHandler) SwitchStackFrame(request *SwitchStackFrameIn, response *SwitchStackFrameOut) error
- func (h *LoggingRPCHandler) Up(request *UpIn, response *UpOut) error
- type NextIn
- type NextOut
- type RPCCodec
- type RPCHandler
- func (h *RPCHandler) Continue(req *ContinueIn, resp *ContinueOut) error
- func (h *RPCHandler) CreateOrDeleteBreakpoint(req *CreateOrDeleteBreakpointIn, resp *CreateOrDeleteBreakpointOut) error
- func (h *RPCHandler) Down(req *DownIn, resp *DownOut) error
- func (h *RPCHandler) Evaluate(req *EvaluateIn, resp *EvaluateOut) error
- func (h *RPCHandler) Foo(req map[string]interface{}, resp *map[string]interface{}) error
- func (h *RPCHandler) GetNextEvent(req map[string]interface{}, resp *map[string]interface{}) error
- func (h *RPCHandler) Initialize(req map[string]interface{}, resp *map[string]interface{}) error
- func (h *RPCHandler) ListBreakpoints(req map[string]interface{}, resp *map[string]interface{}) error
- func (h *RPCHandler) ListGoroutines(req *ListGoroutinesIn, resp *ListGoroutinesOut) error
- func (h *RPCHandler) Next(req *NextIn, resp *NextOut) error
- func (h *RPCHandler) Step(req *StepIn, resp *StepOut) error
- func (h *RPCHandler) Stepout(req *StepoutIn, resp *StepoutOut) error
- func (h *RPCHandler) SwitchGoroutine(req *SwitchGoroutineIn, resp *CommandOut) error
- func (h *RPCHandler) SwitchStackFrame(req *SwitchStackFrameIn, resp *SwitchStackFrameOut) error
- func (h *RPCHandler) Up(req *UpIn, resp *UpOut) error
- type Server
- type Stack
- type StackFrameOut
- type StepIn
- type StepOut
- type StepoutIn
- type StepoutOut
- type SwitchGoroutineIn
- type SwitchGoroutineOut
- type SwitchStackFrameIn
- type SwitchStackFrameOut
- type UpIn
- type UpOut
Constants ¶
View Source
const (
ServiceName = "Dlvim"
)
Variables ¶
View Source
var KnownMethods map[string]struct{}
Functions ¶
func NewInventory ¶
Types ¶
type CommandOut ¶
type CommandOut struct { State *dlvapi.DebuggerState `json:"state"` StackTrace []rpc.StackFrame `json:"stack_trace"` }
type ContinueIn ¶
type ContinueIn struct{}
type ContinueOut ¶
type ContinueOut CommandOut
type CreateOrDeleteBreakpointOut ¶
type CreateOrDeleteBreakpointOut struct{}
type DownOut ¶
type DownOut StackFrameOut
type EvaluateIn ¶
type EvaluateOut ¶
type ListGoroutinesIn ¶
type ListGoroutinesIn struct {
CurrentGoroutineID int `json:"current_goroutine_id"`
}
type ListGoroutinesOut ¶
type LoggingRPCHandler ¶
type LoggingRPCHandler struct {
// contains filtered or unexported fields
}
func NewLoggingRPCHandler ¶
func NewLoggingRPCHandler(wrappedHandler *RPCHandler, serverName string) *LoggingRPCHandler
func (*LoggingRPCHandler) Continue ¶
func (h *LoggingRPCHandler) Continue(request *ContinueIn, response *ContinueOut) error
func (*LoggingRPCHandler) CreateOrDeleteBreakpoint ¶
func (h *LoggingRPCHandler) CreateOrDeleteBreakpoint(request *CreateOrDeleteBreakpointIn, response *CreateOrDeleteBreakpointOut) error
func (*LoggingRPCHandler) Down ¶
func (h *LoggingRPCHandler) Down(request *DownIn, response *DownOut) error
func (*LoggingRPCHandler) Evaluate ¶
func (h *LoggingRPCHandler) Evaluate(request *EvaluateIn, response *EvaluateOut) error
func (*LoggingRPCHandler) Foo ¶
func (h *LoggingRPCHandler) Foo(request map[string]interface{}, response *map[string]interface{}) error
func (*LoggingRPCHandler) GetNextEvent ¶
func (h *LoggingRPCHandler) GetNextEvent(request map[string]interface{}, response *map[string]interface{}) error
func (*LoggingRPCHandler) Initialize ¶
func (h *LoggingRPCHandler) Initialize(request map[string]interface{}, response *map[string]interface{}) error
func (*LoggingRPCHandler) ListBreakpoints ¶
func (h *LoggingRPCHandler) ListBreakpoints(request map[string]interface{}, response *map[string]interface{}) error
func (*LoggingRPCHandler) ListGoroutines ¶
func (h *LoggingRPCHandler) ListGoroutines(request *ListGoroutinesIn, response *ListGoroutinesOut) error
func (*LoggingRPCHandler) Next ¶
func (h *LoggingRPCHandler) Next(request *NextIn, response *NextOut) error
func (*LoggingRPCHandler) Step ¶
func (h *LoggingRPCHandler) Step(request *StepIn, response *StepOut) error
func (*LoggingRPCHandler) Stepout ¶
func (h *LoggingRPCHandler) Stepout(request *StepoutIn, response *StepoutOut) error
func (*LoggingRPCHandler) SwitchGoroutine ¶
func (h *LoggingRPCHandler) SwitchGoroutine(request *SwitchGoroutineIn, response *CommandOut) error
func (*LoggingRPCHandler) SwitchStackFrame ¶
func (h *LoggingRPCHandler) SwitchStackFrame(request *SwitchStackFrameIn, response *SwitchStackFrameOut) error
type NextOut ¶
type NextOut CommandOut
type RPCCodec ¶
type RPCCodec struct {
// contains filtered or unexported fields
}
func NewRPCCodec ¶
func NewRPCCodec(vimConn io.ReadWriteCloser) *RPCCodec
func (*RPCCodec) ReadRequestBody ¶
func (*RPCCodec) ReadRequestHeader ¶
type RPCHandler ¶
type RPCHandler struct {
// contains filtered or unexported fields
}
func NewRPCHandler ¶
func NewRPCHandler(server *Server, ctx context.Context) *RPCHandler
func (*RPCHandler) Continue ¶
func (h *RPCHandler) Continue(req *ContinueIn, resp *ContinueOut) error
func (*RPCHandler) CreateOrDeleteBreakpoint ¶
func (h *RPCHandler) CreateOrDeleteBreakpoint(req *CreateOrDeleteBreakpointIn, resp *CreateOrDeleteBreakpointOut) error
func (*RPCHandler) Evaluate ¶
func (h *RPCHandler) Evaluate(req *EvaluateIn, resp *EvaluateOut) error
func (*RPCHandler) Foo ¶
func (h *RPCHandler) Foo(req map[string]interface{}, resp *map[string]interface{}) error
func (*RPCHandler) GetNextEvent ¶
func (h *RPCHandler) GetNextEvent(req map[string]interface{}, resp *map[string]interface{}) error
func (*RPCHandler) Initialize ¶
func (h *RPCHandler) Initialize(req map[string]interface{}, resp *map[string]interface{}) error
func (*RPCHandler) ListBreakpoints ¶
func (h *RPCHandler) ListBreakpoints(req map[string]interface{}, resp *map[string]interface{}) error
func (*RPCHandler) ListGoroutines ¶
func (h *RPCHandler) ListGoroutines(req *ListGoroutinesIn, resp *ListGoroutinesOut) error
func (*RPCHandler) Stepout ¶
func (h *RPCHandler) Stepout(req *StepoutIn, resp *StepoutOut) error
func (*RPCHandler) SwitchGoroutine ¶
func (h *RPCHandler) SwitchGoroutine(req *SwitchGoroutineIn, resp *CommandOut) error
func (*RPCHandler) SwitchStackFrame ¶
func (h *RPCHandler) SwitchStackFrame(req *SwitchStackFrameIn, resp *SwitchStackFrameOut) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) HandleClient ¶
func (s *Server) HandleClient(ctx context.Context, clientConn io.ReadWriteCloser)
func (*Server) Initialize ¶
func (s *Server) Initialize(startOption upstream.StartOption) (inventory *inventory, err error)
func (*Server) UpstreamClient ¶
type Stack ¶
type Stack struct {
// contains filtered or unexported fields
}
func (*Stack) CurrentFrame ¶
func (*Stack) IsTopmostFrame ¶
func (*Stack) SetStackTrace ¶
func (s *Stack) SetStackTrace(stackTrace []rpc.StackFrame)
func (*Stack) SwitchFrame ¶
func (*Stack) Trace ¶
func (s *Stack) Trace() []rpc.StackFrame
type StackFrameOut ¶
type StackFrameOut struct { StackTrace []rpc.StackFrame `json:"stack_trace"` CurrentFrame int `json:"current_stack_frame"` }
type StepOut ¶
type StepOut CommandOut
type StepoutOut ¶
type StepoutOut CommandOut
type SwitchGoroutineIn ¶
type SwitchGoroutineIn struct {
Line string `json:"line"`
}
type SwitchGoroutineOut ¶
type SwitchGoroutineOut struct{}
type SwitchStackFrameIn ¶
type SwitchStackFrameIn struct {
StackFrame int `json:"stack_frame"`
}
type SwitchStackFrameOut ¶
type SwitchStackFrameOut StackFrameOut
type UpOut ¶
type UpOut StackFrameOut
Click to show internal directories.
Click to hide internal directories.