godoctor: github.com/godoctor/godoctor/engine/protocol Index | Files

package protocol

import "github.com/godoctor/godoctor/engine/protocol"

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

Package Files

command.go protocol.go

func Run Uses

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

type Command Uses

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

type Reply Uses

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

func (Reply) String Uses

func (r Reply) String() string

type State Uses

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

Package protocol imports 16 packages (graph) and is imported by 1 packages. Updated 2016-11-02. Refresh now. Tools for package owners.