Versions in this module Expand all Collapse all v0 v0.2.4 Jun 10, 2025 Changes in this version + var DefaultTimeout = time.Minute + func CreateConnectionOptions(debug bool, logger *zap.Logger) []jsonrpc2.ConnOpt + func NewLSPContext(ctx context.Context, conn *jsonrpc2.Conn, request *jsonrpc2.Request) *common.LSPContext + func NewStreamConnection(handler jsonrpc2.Handler, stream io.ReadWriteCloser, opts ...ConnOption) *jsonrpc2.Conn + func NewWebSocketConnection(handler jsonrpc2.Handler, wsConn *websocket.Conn, opts ...ConnOption) *jsonrpc2.Conn + func RunTCP(ctx context.Context, address string, server *Server, logger *zap.Logger) error + func RunWebSocketServer(address string, server *Server, logger *zap.Logger, httpServer *http.Server) error + type ConnOption func(*connWrapper) + func WithJSONRPCConnOptions(opts ...jsonrpc2.ConnOpt) ConnOption + func WithReadTimeout(timeout time.Duration) ConnOption + func WithTimeout(timeout time.Duration) ConnOption + func WithWebSocket(wsConn *websocket.Conn) ConnOption + func WithWriteTimeout(timeout time.Duration) ConnOption + type JSONRPCLogger struct + func (l *JSONRPCLogger) Printf(format string, v ...any) + type Server struct + func NewServer(handler common.Handler, debug bool, logger *zap.Logger, conn *jsonrpc2.Conn, ...) *Server + func (s *Server) GetReadTimeout() time.Duration + func (s *Server) GetTimeout() time.Duration + func (s *Server) GetWriteTimeout() time.Duration + func (s *Server) NewHandler() jsonrpc2.Handler + func (s *Server) Serve(optConn *jsonrpc2.Conn, connLogger *zap.Logger) + func (s *Server) ServeWebSocket(conn *websocket.Conn, logger *zap.Logger) + type ServerOption func(*Server) + func WithServerReadTimeout(timeout time.Duration) ServerOption + func WithServerTimeout(timeout time.Duration) ServerOption + func WithServerWriteTimeout(timeout time.Duration) ServerOption + type Stdio struct + func (Stdio) Close() error + func (Stdio) Read(p []byte) (int, error) + func (Stdio) Write(p []byte) (int, error)