piping_server

package module
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 12 Imported by: 0

README

go-piping-server

Piping Server written in Go language (original: https://github.com/nwtgck/piping-server)

Install for Ubuntu

wget https://github.com/nwtgck/go-piping-server/releases/download/v0.6.2/go-piping-server-0.6.2-linux-amd64.deb
sudo dpkg -i go-piping-server-0.6.2-linux-amd64.deb

Install for macOS

brew install nwtgck/go-piping-server/go-piping-server

Install for Windows

Download

Get more executables in the releases.

Docker

docker run -p 8181:8080 nwtgck/go-piping-server

Server options

Infinitely transfer between any device over pure HTTP

Usage:
  go-piping-server [flags]

Flags:
      --crt-path string     Certification path
      --enable-http3        Enable HTTP/3 (experimental)
      --enable-https        Enable HTTPS
  -h, --help                help for go-piping-server
      --http-port uint16    HTTP port (default 8080)
      --https-port uint16   HTTPS port (default 8443)
      --key-path string     Private key path
      --version             show version

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWriteFlusherIfPossible added in v0.5.0

func NewWriteFlusherIfPossible(w http.ResponseWriter) io.Writer

Types

type PipingServer

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

func NewServer

func NewServer(logger *log.Logger) *PipingServer

func (*PipingServer) Handler

func (s *PipingServer) Handler(resWriter http.ResponseWriter, req *http.Request)

type WriteFlusher added in v0.5.0

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

func (*WriteFlusher) Write added in v0.5.0

func (f *WriteFlusher) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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