server

package
v0.24.4-beta Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzeSpecRequest

type AnalyzeSpecRequest struct {
	SpecFilePath    string `json:"spec_file_path"`
	SpecFileContent []byte `json:"spec_file_content"`
}

type AnalyzeSpecResponse

type AnalyzeSpecResponse struct {
	Spec         *spec.Specification    `json:"spec"`
	CheckResults []analyzer.CheckResult `json:"check_results"`
	SpecError    *analyzer.SpecError    `json:"spec_error"`
}

type GetSemanticTokensRequest

type GetSemanticTokensRequest struct {
	Path    string `json:"path"`
	Content []byte `json:"content"`
}

type GetSemanticTokensResponse

type GetSemanticTokensResponse struct {
	SemanticTokens []langsrv.ParsedToken `json:"semantic_tokens"`
	Error          string                `json:"error"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func CreateServer

func CreateServer(port int) *Server

func (*Server) Serve

func (server *Server) Serve() error

Jump to

Keyboard shortcuts

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