server

package
v0.0.0-...-e371a88 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

Start maps all necessary routes and listens to the assigned port for serving requests

Types

type CommandPayload

type CommandPayload struct {
	Key         string        `json:"key"`
	CommandName string        `json:"command_name"`
	CommandArgs []interface{} `json:"command_args"`
}

CommandPayload the structure expected from any http requested for delivering the info associated with the command that needs to be executed

type ResponsePayload

type ResponsePayload struct {
	ErrorLog      string `json:"error_log"`
	CommandResult string `json:"command_result"`
}

ResponsePayload structure for the respone containing the command result or error

Jump to

Keyboard shortcuts

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