server

package
v0.0.0-...-6f3bd2b Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package server handles the file hosting server

Index

Constants

View Source
const MdnsServiceName = "_snett._tcp"

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// The current directory being hosted
	Dir string
	// contains filtered or unexported fields
}

func NewServer

func NewServer(dir string, logCh chan models.ServerLog) *Server

func (*Server) List

func (s *Server) List(servers chan<- models.SNetTServer)

List shows the broadcasted servers on the network

func (*Server) Start

func (s *Server) Start(tempConfig config.AppConfig)

Starts starts and serves the specified dir

Directories

Path Synopsis
Package handlers provides the functionalities for file web server hosting
Package handlers provides the functionalities for file web server hosting

Jump to

Keyboard shortcuts

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