dispatcher

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

Dispatcher is responsible for routing JSONPPC request events to the appropriate place.

func New

func New(opts ...Option) *Dispatcher

New returns a new Dispatcher.

func (*Dispatcher) Dispatch

func (d *Dispatcher) Dispatch(ctx context.Context, server Server, conn *jsonrpc2.Conn, r *jsonrpc2.Request)

Dispatch dispatches the given JSONRPC request to the appropriate server function.

type Option

type Option func(*Dispatcher)

Option provides a way to override default behavior of the Dispatcher.

func WithLogger

func WithLogger(l logging.Logger) Option

WithLogger overrides the default logging.Logger for the Dispatcher with the supplied logging.Logger.

type Server

Server defines the set of LSP methods we currently support.

Jump to

Keyboard shortcuts

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