server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppDataHeader  = "X-App-Data"
	AppDataValue   = "go-dev-monitor"
	HostNameHeader = "X-App-Hostname"
)

Variables

This section is empty.

Functions

func EmbedFolder

func EmbedFolder(fsEmbed embed.FS, targetPath string, index bool) static.ServeFileSystem

EmbedFolder creates a ServeFileSystem for embedded files

Types

type Server

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

func New

func New() (*Server, error)

func (*Server) GetData

func (s *Server) GetData(c *gin.Context)

func (*Server) PostData

func (s *Server) PostData(c *gin.Context)

func (*Server) Run

func (s *Server) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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