protocol

package
v0.0.0-...-a2136ea Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause Imports: 16 Imported by: 1

Documentation

Overview

Package protocol provides an implementation of the OpenRefactory protocol (server-side), which provides a standard mechanism for text editors to communicate with refactoring engines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(writer io.Writer, aboutText string, args []string)

Types

type Command

type Command func(*State, map[string]interface{}) (Reply, error)

type Reply

type Reply struct {
	Params map[string]interface{}
}

func (Reply) String

func (r Reply) String() string

type State

type State struct {
	State      int
	About      string
	Mode       string
	Dir        string
	Filesystem filesystem.FileSystem
}

Jump to

Keyboard shortcuts

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