KontrolQuery is a structure of message sent to Kontrol. It is used for querying kites based on the incoming field parameters. Missing fields are not counted during the query (for example if the "version" field is empty, any kite with different version is going to be matched). Order of the fields is
| 195 | // any kite with different version is going to be matched). |
| 196 | // Order of the fields is from general to specific. |
| 197 | type KontrolQuery struct { |
| 198 | Username string `json:"username"` |
| 199 | Environment string `json:"environment"` |
| 200 | Name string `json:"name"` |
| 201 | Version string `json:"version"` |
| 202 | Region string `json:"region"` |
| 203 | Hostname string `json:"hostname"` |
| 204 | ID string `json:"id"` |
| 205 | } |
| 206 | |
| 207 | func (k KontrolQuery) Fields() map[string]string { |
| 208 | return map[string]string{ |
nothing calls this directly
no outgoing calls
no test coverage detected