| 232 | } |
| 233 | |
| 234 | func (c *Controller) BaseInfoResponse() *common.BaseInfoResponse { |
| 235 | c.mu.Lock() |
| 236 | defer c.mu.Unlock() |
| 237 | |
| 238 | response := &common.BaseInfoResponse{ |
| 239 | Started: false, |
| 240 | CoreVersion: "", |
| 241 | NodeVersion: NodeVersion, |
| 242 | } |
| 243 | |
| 244 | if c.backend != nil { |
| 245 | response.Started = c.backend.Started() |
| 246 | response.CoreVersion = c.backend.Version() |
| 247 | } |
| 248 | |
| 249 | return response |
| 250 | } |
| 251 | |
| 252 | func (c *Controller) OutboundsLatency(ctx context.Context, request *common.LatencyRequest) (*common.LatencyResponse, error) { |
| 253 | c.mu.RLock() |