Skip to content

As

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.

seq iter.Seq2[[]byte, error]

The sequence of bytes to convert

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