types

package
v0.0.0-...-4cbcc9d Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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 MethodIs

func MethodIs(s string, m Method) bool

func MethodIsEither

func MethodIsEither(s string, ms ...Method) bool

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 CollectPayload struct {
	ErrorCode  int
	Command    string
	Error      string
	WorkingDir string
}

type CollectResponse

type CollectResponse struct {
	Recognized int
	Processed  int
	Error      string
}

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 Method

type Method string

type NearestNodePayload

type NearestNodePayload struct {
	DocumentIdentifier
	Line   int
	Column int
}

type ServerInfo

type ServerInfo struct {
	Success                 bool     `json:"success"`
	Version                 string   `json:"version"`
	ProcessID               int      `json:"process_id"`
	SupportedFileExtensions []string `json:"supported_file_extensions"`
}

type SetDataDirRequest

type SetDataDirRequest struct {
	NewPath string `json:"new_path"`
}

Jump to

Keyboard shortcuts

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