package
module
Version:
v0.0.0-...-aa2986a
Opens a new window with list of versions in this module.
Published: Feb 7, 2023
License: Unlicense
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
type Agent struct {
Name string `json:"name"`
Identity string `json:"identity"`
PublicKey string `json:"public_key"`
PublicIP string `json:"public_ip"`
Country string `json:"country"`
ISP string `json:"isp"`
}
type AgentRequest struct {
Jwt string
}
type AgentResponse struct {
Jwt string
}
type RegistrationRequest struct {
PublicKey string `json:"public_key"`
SecretKey string `json:"secret_key"`
Agent Agent `json:"agent"`
AuthToken string `json:"auth_token"`
}
type RegistrationResponse struct {
Success bool `json:"success"`
Error string `json:"error"`
PublicKey string `json:"public_key"`
AuthToken string `json:"auth_token"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.