language

package module
v0.0.0-...-8fefe4b Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Language *Language
	Logger   *log.Logger
}

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, conn *jsonrpc2.Conn, req *jsonrpc2.Request) (any, error)

type Language

type Language struct{}

type Server

type Server struct {
	Handler *Handler
	Conn    io.ReadWriteCloser
	Logger  *log.Logger
}

func (*Server) Run

func (s *Server) Run(ctx context.Context)

type Stdio

type Stdio struct{}

func (*Stdio) Close

func (s *Stdio) Close() error

func (*Stdio) Read

func (s *Stdio) Read(p []byte) (int, error)

func (*Stdio) Write

func (s *Stdio) Write(p []byte) (int, error)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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