agent: bolster commenting for clearer understandability

This commit is contained in:
Mitchell Hashimoto 2018-03-25 15:02:25 -10:00
parent 9a987d6452
commit fb7bccc690
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 4 additions and 2 deletions

View File

@ -968,7 +968,9 @@ func (s *HTTPServer) AgentConnectAuthorize(resp http.ResponseWriter, req *http.R
}, nil
}
// connectAuthorizeResp is the response format/structure for the
// /v1/agent/connect/authorize endpoint.
type connectAuthorizeResp struct {
Authorized bool
Reason string
Authorized bool // True if authorized, false if not
Reason string // Reason for the Authorized value (whether true or false)
}