serve

package
v1.0.52 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RouteServer

func RouteServer(server *http.ServeMux, prefix string, getPort func() int, opts loadcov.LoadAllOptions)

RouteServer install these endpoints: / -> index.html /fileAnnotations -> dynamic coverage /fileDetail -> get file content /diffFileDetail -> get diff file content

Types

type GetFileResp

type GetFileResp struct {
	Exists  bool   `json:"exists"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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