handlers

package
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: 0

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

Jump to

Keyboard shortcuts

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