Documentation ¶
Overview ¶
Package proto provides conversions between Tagger types and protobuf.
Index ¶
- func Pb2TaggerCardinality(pbCardinality pb.TagCardinality) (types.TagCardinality, error)
- func Pb2TaggerEntityID(entityID *pb.EntityId) (types.EntityID, error)
- func Tagger2PbEntityEvent(event types.EntityEvent) (*pb.StreamTagsEvent, error)
- func Tagger2PbEntityID(entityID types.EntityID) (*pb.EntityId, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Pb2TaggerCardinality ¶
func Pb2TaggerCardinality(pbCardinality pb.TagCardinality) (types.TagCardinality, error)
Pb2TaggerCardinality helper to convert protobuf cardinality to native tag cardinality.
func Pb2TaggerEntityID ¶
Pb2TaggerEntityID helper to convert a protobuf Entity ID to its expected format.
func Tagger2PbEntityEvent ¶
func Tagger2PbEntityEvent(event types.EntityEvent) (*pb.StreamTagsEvent, error)
Tagger2PbEntityEvent helper to convert a native EntityEvent type to its protobuf representation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.