Matheus Sampaio Queiroga
0b280040fc
All checks were successful
Test / Test (pull_request) Successful in 39s
Signed-off-by: Matheus Sampaio Queiroga <srherobrine20@gmail.com>
17 lines
536 B
Go
17 lines
536 B
Go
package proto
|
|
|
|
import (
|
|
"errors"
|
|
"time"
|
|
)
|
|
|
|
var ErrProtoBothNoSupported error = errors.New("protocol UDP+TCP not supported currently")
|
|
|
|
// Send request to agent and wait response
|
|
type Request struct {
|
|
AgentAuth []byte `json:",omitempty"` // Send agent authentication to controller
|
|
Ping *time.Time `json:",omitempty"` // Send ping time to controller in unix milliseconds
|
|
ClientClose *Client `json:",omitempty"` // Close client in controller
|
|
DataTX *ClientData `json:",omitempty"` // Recive data from agent
|
|
}
|