vim

package
v0.0.0-...-dfa6bd9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "Dlvim"
)

Variables

View Source
var KnownMethods map[string]struct{}

Functions

func NewInventory

func NewInventory(ctx context.Context, upstreamStartOption upstream.StartOption, events chan<- vimevent.Event, debugRPC bool) (*inventory, error)

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 CreateOrDeleteBreakpointIn

type CreateOrDeleteBreakpointIn struct {
	File string `json:"file"`
	Line int    `json:"line"`
}

type CreateOrDeleteBreakpointOut

type CreateOrDeleteBreakpointOut struct{}

type DownIn

type DownIn struct{}

type DownOut

type DownOut StackFrameOut

type EvaluateIn

type EvaluateIn struct {
	// Specify either line + cursor_position or expression
	Line           string `json:"line"`
	CursorPosition int    `json:"cursor_position"`

	Expression string `json:"expression"`
}

type EvaluateOut

type EvaluateOut struct {
	OneLine string   `json:"one_line"`
	Pretty  []string `json:"pretty"`
}

type ListGoroutinesIn

type ListGoroutinesIn struct {
	CurrentGoroutineID int `json:"current_goroutine_id"`
}

type ListGoroutinesOut

type ListGoroutinesOut struct {
	Goroutines            []string `json:"goroutines"`
	CurrentGoroutineIndex int      `json:"current_goroutine_index"`
}

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

func (*LoggingRPCHandler) Up

func (h *LoggingRPCHandler) Up(request *UpIn, response *UpOut) error

type NextIn

type NextIn struct{}

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) Close

func (v *RPCCodec) Close() error

func (*RPCCodec) ReadRequestBody

func (v *RPCCodec) ReadRequestBody(body interface{}) (err error)

func (*RPCCodec) ReadRequestHeader

func (v *RPCCodec) ReadRequestHeader(request *rpc.Request) (err error)

func (*RPCCodec) WriteResponse

func (v *RPCCodec) WriteResponse(response *rpc.Response, body interface{}) error

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) Down

func (h *RPCHandler) Down(req *DownIn, resp *DownOut) 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) Next

func (h *RPCHandler) Next(req *NextIn, resp *NextOut) error

func (*RPCHandler) Step

func (h *RPCHandler) Step(req *StepIn, resp *StepOut) 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

func (*RPCHandler) Up

func (h *RPCHandler) Up(req *UpIn, resp *UpOut) error

type Server

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

func NewServer

func NewServer(debugRPC bool) *Server

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) Stop

func (s *Server) Stop()

func (*Server) UpstreamClient

func (s *Server) UpstreamClient() commonrpc.Client

type Stack

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

func NewStack

func NewStack() *Stack

func (*Stack) CurrentFrame

func (s *Stack) CurrentFrame() int

func (*Stack) Down

func (s *Stack) Down() error

func (*Stack) IsTopmostFrame

func (s *Stack) IsTopmostFrame() bool

func (*Stack) SetStackTrace

func (s *Stack) SetStackTrace(stackTrace []rpc.StackFrame)

func (*Stack) SwitchFrame

func (s *Stack) SwitchFrame(frame int) error

func (*Stack) Trace

func (s *Stack) Trace() []rpc.StackFrame

func (*Stack) Up

func (s *Stack) Up() error

type StackFrameOut

type StackFrameOut struct {
	StackTrace   []rpc.StackFrame `json:"stack_trace"`
	CurrentFrame int              `json:"current_stack_frame"`
}

type StepIn

type StepIn struct{}

type StepOut

type StepOut CommandOut

type StepoutIn

type StepoutIn struct{}

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 UpIn

type UpIn struct{}

type UpOut

type UpOut StackFrameOut

Jump to

Keyboard shortcuts

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