Documentation
¶
Index ¶
- Variables
- func GetName() string
- func IsPortAvailable(port string) bool
- func ListenFor(path string, action func(http.ResponseWriter, *http.Request, string)) (string, error)
- func ListenForHash() (string, error)
- func ListenForToken() (string, error)
- func Shutdown(server *http.Server)
- func UpdateInquiry(hash string) error
- type HashResult
- type Inquiry
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var Port = ":8678"
Functions ¶
func GetName ¶
func GetName() string
GetName returns the ComputerName and/or hostname of the machine
func IsPortAvailable ¶
IsPortAvailable checks if a port is available by trying to listen on it
func ListenForHash ¶
func ListenForToken ¶
func UpdateInquiry ¶
UpdateInquiry update the inquiry passing ComputerName and user agent
Types ¶
type HashResult ¶
type HashResult struct {
Hash string `json:"hash"`
}
Click to show internal directories.
Click to hide internal directories.