Skip to content

Http server written in golang to execute some commands

Notifications You must be signed in to change notification settings

ssalvatori/rest2command

Repository files navigation

Build Status

Coverage Status

rest2command

Http server written in golang to execute some command

Environment variables

LOG_LEVEL (debug|info|warn|error|fatal)
PORT (default 8891)
FILE_CONFIGURATION (default ./configuration.json)

Configuration file

[
  {
  "url": "/change/opt1",
  "command": "/opt/opt1.sh",
  "args": "args1 args2"
  },
  {
    "url": "/change/opt2",
    "command": "/opt/opt2.sh"
  }
]

About

Http server written in golang to execute some commands

Resources

Stars

Watchers

Forks

Packages

No packages published