func (lgc *Logic) GetStream(id string) (*graylog.Stream, int, error) {
	if err := ValidateObjectID(id); err != nil {
		// unfortunately graylog returns not 400 but 404.
		return nil, 404, err
	}
	stream, err := lgc.store.GetStream(id)
	if err != nil {
		return nil, 500, err
	}
	if stream == nil {
		return nil, 404, fmt.Errorf("no stream found with id <%s>", id)
	}
	return stream, 200, nil
}
// GetStream returns a stream.
GetStream returns a stream.
// GetStream returns a stream .
func (lgc *Logic) GetStream(id string) (*graylog.Stream, int, error) {
	if err := ValidateObjectID(id); err != nil {
		return nil, 404, err
	}
	stream, err := lgc.store.GetStream(id)
	if err != nil {
		return nil, 500, err
	}
	if stream == nil {
		return nil, 404, fmt.Errorf("no stream found with id <%s>", id)
	}
	return stream, 200, nil
}
func ( lgc * Logic ) GetStream ( id string ) ( * graylog . Stream , int , error ) { if err := ValidateObjectID ( id ) ; err != nil { return nil , 404 , err } stream , err := lgc . store . GetStream ( id ) if err != nil { return nil , 500 , err } if stream == nil { return nil , 404 , fmt . Errorf ( " " , id ) } return stream , 200 , nil }
GetStream returns a stream.
GetStream returns a stream .
// unfortunately graylog returns not 400 but 404.