func (lgc *Logic) GetIndexSet(id string) (*graylog.IndexSet, int, error) {
	if id == "" {
		return nil, 400, fmt.Errorf("index set id is empty")
	}
	if err := ValidateObjectID(id); err != nil {
		// unfortunately graylog returns not 400 but 404.
		return nil, 404, err
	}
	is, err := lgc.store.GetIndexSet(id)
	if err != nil {
		return is, 500, err
	}
	if is == nil {
		return nil, 404, fmt.Errorf("no index set <%s> is found", id)
	}
	return is, 200, err
}
// GetIndexSet returns an index set.
// If an index set is not found, returns an error.
GetIndexSet returns an index set.
If an index set is not found, returns an error.
// GetIndexSet returns an index set . // If an index set is not found returns an error .
func (lgc *Logic) GetIndexSet(id string) (*graylog.IndexSet, int, error) {
	if id == "" {
		return nil, 400, fmt.Errorf("index set id is empty")
	}
	if err := ValidateObjectID(id); err != nil {
		return nil, 404, err
	}
	is, err := lgc.store.GetIndexSet(id)
	if err != nil {
		return is, 500, err
	}
	if is == nil {
		return nil, 404, fmt.Errorf("no index set <%s> is found", id)
	}
	return is, 200, err
}
func ( lgc * Logic ) GetIndexSet ( id string ) ( * graylog . IndexSet , int , error ) { if id == " " { return nil , 400 , fmt . Errorf ( " " ) } if err := ValidateObjectID ( id ) ; err != nil { return nil , 404 , err } is , err := lgc . store . GetIndexSet ( id ) if err != nil { return is , 500 , err } if is == nil { return nil , 404 , fmt . Errorf ( " " , id ) } return is , 200 , err }
GetIndexSet returns an index set.
GetIndexSet returns an index set .
// unfortunately graylog returns not 400 but 404.