func (c *Client) GetSessions() ([]session.Session, error) {
	out, err := c.Get(c.Endpoint("sessions"), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var sessions []session.Session
	if err := json.Unmarshal(out.Bytes(), &sessions); err != nil {
		return nil, err
	}
	return sessions, nil
}
// GetSessions returns a list of active sessions in the cluster
// as reported by auth server
GetSessions returns a list of active sessions in the cluster
as reported by auth server
// GetSessions returns a list of active sessions in the cluster // as reported by auth server
func (c *Client) GetSessions() ([]session.Session, error) {
	out, err := c.Get(c.Endpoint("sessions"), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var sessions []session.Session
	if err := json.Unmarshal(out.Bytes(), &sessions); err != nil {
		return nil, err
	}
	return sessions, nil
}
func ( c * Client ) GetSessions ( ) ( [ ] session . Session , error ) { out , err := c . Get ( c . Endpoint ( " " ) , url . Values { } ) if err != nil { return nil , trace . Wrap ( err ) } var sessions [ ] session . Session if err := json . Unmarshal ( out . Bytes ( ) , & sessions ) ; err != nil { return nil , err } return sessions , nil }
GetSessions returns a list of active sessions in the cluster
as reported by auth server
GetSessions returns a list of active sessions in the cluster as reported by auth server