// GetProcessor returns a processor from Lenses for the given id
GetProcessor returns a processor from Lenses for the given id
// GetProcessor returns a processor from Lenses for the given id
func (c *Client) GetProcessor(processorID string) (ProcessorStream, error) {
	var res ProcessorStream
	path := fmt.Sprintf(processorPath, processorID)
	resp, err := c.Do(http.MethodGet, path, "", nil)
	if err != nil {
		return res, err
	}
	if err = c.ReadJSON(resp, &res); err != nil {
		return res, err
	}
	return res, nil
}
func ( c * Client ) GetProcessor ( processorID string ) ( ProcessorStream , error ) { var res ProcessorStream path := fmt . Sprintf ( processorPath , processorID ) resp , err := c . Do ( http . MethodGet , path , " " , nil ) if err != nil { return res , err } if err = c . ReadJSON ( resp , & res ) ; err != nil { return res , err } return res , nil }
GetProcessor returns a processor from Lenses for the given id
GetProcessor returns a processor from Lenses for the given id