Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelRequest ¶
CancelRequest will be called on "$/cancelRequest"
func Initialized ¶
Initialized is the callback that runs on the "initialized" method
func NewSession ¶
func NewSession(ctx context.Context) session.ServiceSession
NewSession instantiates a new session
Types ¶
type MethodHandler ¶
type MethodHandler struct {
// contains filtered or unexported fields
}
MethodHandler is a struct that contains a logger, as well as methods to individual method handlers
func NewMethodHandler ¶
func NewMethodHandler(logger *log.Logger) *MethodHandler
NewMethodHandler will instantiate a handler that contains callbacks to the server's methods
func (*MethodHandler) Initialize ¶
func (mh *MethodHandler) Initialize(ctx context.Context, _ *jrpc2.Request) (lsp.InitializeResult, error)
Initialize is the callback that runs on the "initialize" method
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a handler service for sessions
func (*Service) Assigner ¶
Assigner will create the session and set up the service method/handler map
func (*Service) Finish ¶
func (service *Service) Finish(status jrpc2.ServerStatus)
Finish will terminate the service
Click to show internal directories.
Click to hide internal directories.