Socket
Book a DemoInstallSign in
Socket

github.com/walfano/mock-server-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/walfano/mock-server-go

v0.0.0-20201120192149-c7ff1000c91d
Source
Go
Version published
Created
Source

Simple Mock Server

This is a simple configurable mock server written in Go

Usage

$ ./mock-server
$ ./mock-server -port=8081 -responseCode=500 -sleep=10
FlagOptionalDefaultDescription
-portY8080Port the server runs on
-responseCodeY200HTTP response code to return
-sleepY0Time to sleep (in seconds) before returning result

Building

Build for local use

$ go build

Build for linux use

$ env GOOS=linux GOARCH=amd64 go build

FAQs

Package last updated on 20 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.