Documentation ¶
Index ¶
- Variables
- func MethodIs(s string, m Method) bool
- func MethodIsEither(s string, ms ...Method) bool
- type ClientInfo
- type ClientType
- type CollectPayload
- type CollectResponse
- type DocumentIdentifier
- type DocumentPayload
- type ErrorReport
- type Method
- type NearestNodePayload
- type ServerInfo
- type SetDataDirRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HandshakeMethod = serverNamespace.methodName("handshake") ShutdownMethod = serverNamespace.methodName("shutdown") CollectMethod = serverNamespace.methodName("collect") PingMethod = serverNamespace.methodName("ping") GetDataDirMethod = serverNamespace.methodName("dataDir") SetDataDirMethod = serverNamespace.methodName("dataDir/set") )
server methods
View Source
var ( RetrieveParticipantIdMethod = loggerNamespace.methodName("participantId/retrieve") GenerateParticipantIdMethod = loggerNamespace.methodName("participantId/generate") ResetLoggerMethod = loggerNamespace.methodName("reset") )
logger methods
View Source
var ( ResolveDocumentMethod = documentsNamespace.methodName("resolve") UpdateDocumentMethod = documentsNamespace.methodName("update") DeleteDocumentMethod = documentsNamespace.methodName("delete") RetrieveDocumentMethod = documentsNamespace.methodName("retrieve") )
document methods
View Source
var (
NearestNodeMethod = lspNamespace.methodName("nearestNode")
)
lsp-specific methods
View Source
var (
ReportMethod = clientsNamespace.methodName("report")
)
client methods
Functions ¶
func MethodIsEither ¶
Types ¶
type ClientInfo ¶
type ClientInfo struct { ProcessId int `json:"processId"` ClientType ClientType `json:"clientType"` }
type ClientType ¶
type ClientType int
const ( MonitorClientType ClientType = 0 LspClientType ClientType = iota UnknownClientType ClientType = iota )
type CollectPayload ¶
type CollectResponse ¶
type DocumentIdentifier ¶
type DocumentIdentifier struct {
Filepath string `json:"filepath"`
}
type DocumentPayload ¶
type DocumentPayload struct { DocumentIdentifier Content string `json:"content"` }
type ErrorReport ¶
type ErrorReport struct { Template string `json:"template"` Language string `json:"language"` ErrorCode int `json:"exit_code"` Received int `json:"received"` Processed int `json:"processed"` AnalyzerError string `json:"analyzer_error"` FullMessage string `json:"full_message"` Message string `json:"message"` Location errgoengine.Location `json:"location"` }
type NearestNodePayload ¶
type NearestNodePayload struct { DocumentIdentifier Line int Column int }
type ServerInfo ¶
type SetDataDirRequest ¶
type SetDataDirRequest struct {
NewPath string `json:"new_path"`
}
Click to show internal directories.
Click to hide internal directories.