Skip to content

As

go
func As[T proto.Message](seq iter.Seq2[[]byte, error]) iter.Seq2[T, error]

Convert a sequence of bytes into a sequence of proto.Message.

Useful to convert the output of Datapoints.Query into a sequence of proto.Message.

Parameters

seq iter.Seq2[[]byte, error]

The sequence of bytes to convert

Returns

A sequence of proto.Message or an error if any.

Type to search…