client

package
v0.0.0-...-ef927d8 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package client is used to send remote procedure calls to the server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for making remote procedure calls to the server.

func New

func New(serverName, port, hostname string) (*Client, error)

New is used to create a new client.

func (*Client) EndSession

func (c *Client) EndSession(args []string)

EndSession should be called when the neovim process ends.

func (*Client) FocusGained

func (c *Client) FocusGained(args []string)

FocusGained should be called when a buffer gains focus.

func (*Client) OpenFile

func (c *Client) OpenFile(args []string)

OpenFile should be called when a buffer is opened. The server will check if the path is a valid file.

func (*Client) SendHeartbeat

func (c *Client) SendHeartbeat(args []string)

SendHeartbeat can be called for events such as buffer writes and cursor moves. Its purpose is to notify the server that the current session remains active. The server ends the session if we don't perform any actions for 10 minutes.

Jump to

Keyboard shortcuts

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