// GetProcessors returns a list of all available LSQL processors.
GetProcessors returns a list of all available LSQL processors.
// GetProcessors returns a list of all available LSQL processors .
func (c *Client) GetProcessors() (ProcessorsResult, error) {
	var res ProcessorsResult
	resp, err := c.Do(http.MethodGet, processorsPath, "", nil)
	if err != nil {
		return res, err
	}
	if err = c.ReadJSON(resp, &res); err != nil {
		return res, err
	}
	for i, processor := range res.Streams {
		res.Streams[i].DeploymentState = processor.RunnerState.DeploymentStatus
	}
	return res, nil
}
func ( c * Client ) GetProcessors ( ) ( ProcessorsResult , error ) { var res ProcessorsResult resp , err := c . Do ( http . MethodGet , processorsPath , " " , nil ) if err != nil { return res , err } if err = c . ReadJSON ( resp , & res ) ; err != nil { return res , err } for i , processor := range res . Streams { res . Streams [ i ] . DeploymentState = processor . RunnerState . DeploymentStatus } return res , nil }
GetProcessors returns a list of all available LSQL processors.
GetProcessors returns a list of all available LSQL processors .
// Hack to populate the `DeploymentState` field due to current implementation // of table printer not able to handle nested fields as headers.