handlers

package
Version: v0.0.0-...-9e745d5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ws

func Ws(w http.ResponseWriter, r *http.Request)

Ws - handler for websocket, send status of scenario to client

Types

type ResultWs

type ResultWs struct {
	Result []WS `json:"Result"`
}

ResultWs - results slice WS for websocket

type WS

type WS struct {
	ServiceName string `json:"servicename"`
	Host        string `json:"host"`
	State       bool   `json:"state"`
}

WS - struct for websocket

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL