package
Version:
v0.1.8
Opens a new window with list of versions in this module.
Published: Oct 5, 2021
License: MIT
Opens a new window with license information.
Imports: 34
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package web implements the HTTP and websocket services for the frontend client and backend server.
type APIResponse struct {
Status bool `json:"status"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
type WebHandler interface {
ListenAndServe() error
}
New sets up the router and starts the API HTTP handlers
This function blocks on the context
Source Files
¶
Directories
¶
Package ws implements a websocket client and server for communication between the host and agents.
|
Package ws implements a websocket client and server for communication between the host and agents. |
Click to show internal directories.
Click to hide internal directories.