server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PORT = 8080
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name     string `json:"name"`
	Interval int    `json:"interval"`
}

type Server

type Server struct {
	Config  Config
	Monitor *monitor.Monitor
}

func NewServer

func NewServer(currentDir string) *Server

func (*Server) Start

func (s *Server) Start()

Starts starts and serves the specified dir

Jump to

Keyboard shortcuts

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