server

package
v0.0.0-...-4fbc73c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MuxListener

func MuxListener(l net.Listener) (ssh net.Listener, other net.Listener)

MuxListener creates two net.Listener one of them accepts connections that start with "SSH", and another that accepts all others.

Types

type EServer

type EServer struct {
	Port     string
	Address  string
	Manager  *manager.EServerManager
	User     string
	Password string
	ReadOnly bool
}

EServer stores info about settings

func (*EServer) Start

func (s *EServer) Start()

Start http server

/admin/list endpoint returns list of files
/admin/add-from-url endpoint fires download
/admin/status/{filename} returns fileinfo
/eserver/{filename} returns file

Jump to

Keyboard shortcuts

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