serverbin

module
v0.0.1-rc9 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: Apache-2.0

README

Build License Go Report Card Go Reference

serverbin

A simple request and response service with support for

  • HTTP
  • TCP

Usage

docker

Run the http test server:

docker run -p 8080:8080 -p 8081:8081 -ti --rm marsom/serverbin http

Run the tcp test server:

docker run -p 8080:8080 -p 8081:8081 -ti --rm marsom/serverbin tcp
go install

Install binary with go

go install github.com/marsom/serverbin/cmd/serverbin

Run the http test server:

serverbin http

Run the tcp test server:

serverbin tcp
manually

Download the pre-compiled binaries from the releases page and copy to the desired location.

Build

Download and install the build requirements:

Optional development tools:

Build binaries

goreleaser build --snapshot --rm-dist

Build binaries and docker images

goreleaser release --snapshot --rm-dist

Directories

Path Synopsis
cmd
internal
tcp

Jump to

Keyboard shortcuts

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