langserver

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(configPath string, cliConfig *tflint.Config) (jsonrpc2.Handler, *tfplugin.Plugin, error)

NewHandler returns a new JSON-RPC handler

Types

type Conn

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

Conn is a connection for LSP

func NewConn

func NewConn(reader io.ReadCloser, writer io.WriteCloser) *Conn

NewConn returns a new LSP connection

func (*Conn) Close

func (c *Conn) Close() error

Close closes the connection

func (*Conn) Read

func (c *Conn) Read(p []byte) (int, error)

Read reads data from input

func (*Conn) Write

func (c *Conn) Write(p []byte) (int, error)

Write writes data to output

Jump to

Keyboard shortcuts

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