Documentation ¶
Index ¶
- func GetFilePath(r *http.Request) (string, error)
- type CreateFileHandler
- type CreateFileRequest
- type CreateProjectHandler
- type CreateTaskHandler
- type DeleteFileHandler
- type DeleteProjectHandler
- type DocumentOutline
- type FileInfo
- type LineDiffRequest
- type ListFilesHandler
- type ListTasksHandler
- type OverwriteRequest
- type ReadFileHandler
- type Router
- func (r *Router) Build() *mux.Router
- func (r *Router) WithCreateFileHandler(handler http.Handler) *Router
- func (r *Router) WithCreateProjectHandler(handler http.Handler) *Router
- func (r *Router) WithCreateTaskHandler(handler http.Handler) *Router
- func (r *Router) WithDeleteFileHandler(handler http.Handler) *Router
- func (r *Router) WithDeleteProjectHandler(handler http.Handler) *Router
- func (r *Router) WithDocumentOutlineHandler(handler http.Handler) *Router
- func (r *Router) WithListFilesHandler(handler http.Handler) *Router
- func (r *Router) WithListTasksHandler(handler http.Handler) *Router
- func (r *Router) WithReadFileHandler(handler http.Handler) *Router
- func (r *Router) WithSearchFileHandler(handler http.Handler) *Router
- func (r *Router) WithSearchSymbolsHandler(handler http.Handler) *Router
- func (r *Router) WithUpdateFileHandler(handler http.Handler) *Router
- type SearchFilesHandler
- type SearchSymbolsHandler
- type SearchSymbolsOptions
- type TaskRequest
- type UdiffRequest
- type UpdateFileHandler
- type UpdateFileRequest
- type UpdateType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateFileHandler ¶
func (CreateFileHandler) ServeHTTP ¶
func (h CreateFileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type CreateFileRequest ¶
type CreateProjectHandler ¶
func (CreateProjectHandler) ServeHTTP ¶
func (h CreateProjectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type CreateTaskHandler ¶
func (CreateTaskHandler) ServeHTTP ¶
func (h CreateTaskHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DeleteFileHandler ¶
func (DeleteFileHandler) ServeHTTP ¶
func (h DeleteFileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DeleteProjectHandler ¶
func (DeleteProjectHandler) ServeHTTP ¶
func (h DeleteProjectHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type DocumentOutline ¶ added in v0.5.0
func (DocumentOutline) ServeHTTP ¶ added in v0.5.0
func (h DocumentOutline) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LineDiffRequest ¶
type ListFilesHandler ¶
func (ListFilesHandler) ServeHTTP ¶
func (h ListFilesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ListTasksHandler ¶
func (ListTasksHandler) ServeHTTP ¶
func (h ListTasksHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type OverwriteRequest ¶
type OverwriteRequest struct {
Content string `json:"content"`
}
type ReadFileHandler ¶
func (ReadFileHandler) ServeHTTP ¶
func (h ReadFileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Router ¶
func (*Router) WithCreateFileHandler ¶
func (*Router) WithCreateProjectHandler ¶
func (*Router) WithCreateTaskHandler ¶
func (*Router) WithDeleteFileHandler ¶
func (*Router) WithDeleteProjectHandler ¶
func (*Router) WithDocumentOutlineHandler ¶ added in v0.5.0
func (*Router) WithListFilesHandler ¶
func (*Router) WithListTasksHandler ¶
func (*Router) WithReadFileHandler ¶
func (*Router) WithSearchFileHandler ¶
func (*Router) WithSearchSymbolsHandler ¶
type SearchFilesHandler ¶
func (SearchFilesHandler) ServeHTTP ¶
func (h SearchFilesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SearchSymbolsHandler ¶
type SearchSymbolsHandler struct {
// contains filtered or unexported fields
}
func NewSearchSymbolsHandler ¶
func NewSearchSymbolsHandler(pm project.Manager, opts ...SearchSymbolsOptions) SearchSymbolsHandler
func (SearchSymbolsHandler) ServeHTTP ¶
func (h SearchSymbolsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SearchSymbolsOptions ¶
type SearchSymbolsOptions func(opts *searchSymbolsOptions)
func ExcludedSymbols ¶
func ExcludedSymbols(symbols ...protocol.SymbolKind) SearchSymbolsOptions
func IncludeSymbols ¶
func IncludeSymbols(symbols ...protocol.SymbolKind) SearchSymbolsOptions
func SearchSymbolsLimit ¶
func SearchSymbolsLimit(n int) SearchSymbolsOptions
func SearchSymbolsMaxLimit ¶
func SearchSymbolsMaxLimit(n int) SearchSymbolsOptions
type TaskRequest ¶
type TaskRequest struct { Command *string `json:"command,omitempty"` Alias *string `json:"alias,omitempty"` }
func (*TaskRequest) Validate ¶
func (t *TaskRequest) Validate() error
type UdiffRequest ¶
type UdiffRequest struct {
Patch string `json:"patch"`
}
type UpdateFileHandler ¶
func (UpdateFileHandler) ServeHTTP ¶
func (h UpdateFileHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UpdateFileRequest ¶
type UpdateFileRequest struct { Type UpdateType `json:"type"` Udiff *UdiffRequest `json:"udiff,omitempty"` LineDiff *LineDiffRequest `json:"linediff,omitempty"` Overwrite *OverwriteRequest `json:"overwrite,omitempty"` }
func (*UpdateFileRequest) Validate ¶
func (r *UpdateFileRequest) Validate() error
type UpdateType ¶
type UpdateType string
const ( Udiff UpdateType = "udiff" LineDiff UpdateType = "linediff" Overwrite UpdateType = "overwrite" )
Click to show internal directories.
Click to hide internal directories.