Documentation
¶
Overview ¶
Package session provides session lifecycle tracking for a language server.
Index ¶
- Constants
- type ClientCaller
- type ClientNotifier
- type Factory
- type Lifecycle
- func (s *Lifecycle) CheckInitializationIsConfirmed() error
- func (s *Lifecycle) ConfirmInitialization(req *jrpc2.Request) error
- func (s *Lifecycle) Exit() error
- func (s *Lifecycle) Initialize(req *jrpc2.Request) error
- func (s *Lifecycle) IsInitializedUnconfirmed() bool
- func (s *Lifecycle) Prepare() error
- func (s *Lifecycle) Shutdown(req *jrpc2.Request) error
- type Server
- type Session
Constants ¶
View Source
const NotInitialized jrpc2.Code = -32002
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCaller ¶
type ClientNotifier ¶
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
func NewLifecycle ¶
func NewLifecycle(exitFunc context.CancelFunc) *Lifecycle
func (*Lifecycle) CheckInitializationIsConfirmed ¶
func (*Lifecycle) ConfirmInitialization ¶
func (*Lifecycle) IsInitializedUnconfirmed ¶
type Server ¶
type Server interface {
ClientNotifier
ClientCaller
}
Click to show internal directories.
Click to hide internal directories.