Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client of the language server.
func Open ¶
Open uses the dialer to make a new connection and returns a client of the LangServer based on the connection.
func ServeAndDial ¶
func ServeAndDial(conf *ServeAndDialConfig, gopCmd string, args ...string) Client
ServeAndDial executes a command as a LangServer, makes a new connection to it and returns a client of the LangServer based on the connection.
func (Client) AsyncGenGo ¶
type Config ¶
type Config struct { // Framer allows control over the message framing and encoding. // If nil, HeaderFramer will be used. Framer jsonrpc2.Framer }
Config holds the options for new connections.
type ServeAndDialConfig ¶
type ServeAndDialConfig struct { // OnError is to customize how to process errors (optional). // It should panic in any case. OnError func(err error) }
ServeAndDialConfig represents the configuration of ServeAndDial.
Click to show internal directories.
Click to hide internal directories.