func (client *Client) GetStreamContext(
	ctx context.Context, id string,
) (*graylog.Stream, *ErrorInfo, error) {
	if id == "" {
		return nil, nil, errors.New("id is empty")
	}
	u, err := client.Endpoints().Stream(id)
	if err != nil {
		return nil, nil, err
	}
	stream := &graylog.Stream{}
	ei, err := client.callGet(ctx, u.String(), nil, stream)
	return stream, ei, err
}
// GetStreamContext returns a given stream with a context.
GetStreamContext returns a given stream with a context.
// GetStreamContext returns a given stream with a context .
func (client *Client) GetStreamContext(
	ctx context.Context, id string,
) (*graylog.Stream, *ErrorInfo, error) {
	if id == "" {
		return nil, nil, errors.New("id is empty")
	}
	u, err := client.Endpoints().Stream(id)
	if err != nil {
		return nil, nil, err
	}
	stream := &graylog.Stream{}
	ei, err := client.callGet(ctx, u.String(), nil, stream)
	return stream, ei, err
}
func ( client * Client ) GetStreamContext ( ctx context . Context , id string , ) ( * graylog . Stream , * ErrorInfo , error ) { if id == " " { return nil , nil , errors . New ( " " ) } u , err := client . Endpoints ( ) . Stream ( id ) if err != nil { return nil , nil , err } stream := & graylog . Stream { } ei , err := client . callGet ( ctx , u . String ( ) , nil , stream ) return stream , ei , err }
GetStreamContext returns a given stream with a context.
GetStreamContext returns a given stream with a context .