gotools/gopls/internal/protocol/protocol.go

var RequestCancelledError

var RequestCancelledErrorV2

type ClientCloser

type connSender

type clientDispatcher

func (c *clientDispatcher) Close() error {}

// ClientDispatcher returns a Client that dispatches LSP requests across the
// given jsonrpc2 connection.
func ClientDispatcher(conn jsonrpc2.Conn) ClientCloser {}

type clientConn

func (c clientConn) Close() error {}

func (c clientConn) Notify(ctx context.Context, method string, params interface{}

func (c clientConn) Call(ctx context.Context, method string, params interface{}

func ClientDispatcherV2(conn *jsonrpc2_v2.Connection) ClientCloser {}

type clientConnV2

func (c clientConnV2) Close() error {}

func (c clientConnV2) Notify(ctx context.Context, method string, params interface{}

func (c clientConnV2) Call(ctx context.Context, method string, params interface{}

// ServerDispatcher returns a Server that dispatches LSP requests across the
// given jsonrpc2 connection.
func ServerDispatcher(conn jsonrpc2.Conn) Server {}

func ServerDispatcherV2(conn *jsonrpc2_v2.Connection) Server {}

type serverDispatcher

func ClientHandler(client Client, handler jsonrpc2.Handler) jsonrpc2.Handler {}

func ClientHandlerV2(client Client) jsonrpc2_v2.Handler {}

func ServerHandler(server Server, handler jsonrpc2.Handler) jsonrpc2.Handler {}

func ServerHandlerV2(server Server) jsonrpc2_v2.Handler {}

func req2to1(req2 *jsonrpc2_v2.Request) jsonrpc2.Request {}

func Handlers(handler jsonrpc2.Handler) jsonrpc2.Handler {}

func CancelHandler(handler jsonrpc2.Handler) jsonrpc2.Handler {}

func Call(ctx context.Context, conn jsonrpc2.Conn, method string, params interface{}

func cancelCall(ctx context.Context, sender connSender, id jsonrpc2.ID) {}

// UnmarshalJSON unmarshals msg into the variable pointed to by
// params. In JSONRPC, optional messages may be
// "null", in which case it is a no-op.
func UnmarshalJSON(msg json.RawMessage, v any) error {}

func sendParseError(ctx context.Context, reply jsonrpc2.Replier, err error) error {}

// NonNilSlice returns x, or an empty slice if x was nil.
//
// (Many slice fields of protocol structs must be non-nil
// to avoid being encoded as JSON "null".)
func NonNilSlice[T comparable](x []T) []T {}

func recoverHandlerPanic(method string) {}