func (client *Client) GetRolesContext(ctx context.Context) (
	[]graylog.Role, int, *ErrorInfo, error,
) {
	roles := &graylog.RolesBody{}
	ei, err := client.callGet(
		ctx, client.Endpoints().Roles(), nil, roles)
	return roles.Roles, roles.Total, ei, err
}
// GetRolesContext returns all roles with a context.
GetRolesContext returns all roles with a context.
// GetRolesContext returns all roles with a context .
func (client *Client) GetRolesContext(ctx context.Context) (
	[]graylog.Role, int, *ErrorInfo, error,
) {
	roles := &graylog.RolesBody{}
	ei, err := client.callGet(
		ctx, client.Endpoints().Roles(), nil, roles)
	return roles.Roles, roles.Total, ei, err
}
func ( client * Client ) GetRolesContext ( ctx context . Context ) ( [ ] graylog . Role , int , * ErrorInfo , error , ) { roles := & graylog . RolesBody { } ei , err := client . callGet ( ctx , client . Endpoints ( ) . Roles ( ) , nil , roles ) return roles . Roles , roles . Total , ei , err }
GetRolesContext returns all roles with a context.
GetRolesContext returns all roles with a context .