data

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package data contains data transmission topics.

Index

Constants

This section is empty.

Variables

View Source
var (
	// TopicMap is the map of topic name to topic.
	TopicMap = map[string]bus.Topic{
		TopicStreamWrite.String():    TopicStreamWrite,
		TopicStreamQuery.String():    TopicStreamQuery,
		TopicMeasureWrite.String():   TopicMeasureWrite,
		TopicMeasureQuery.String():   TopicMeasureQuery,
		TopicTopNQuery.String():      TopicTopNQuery,
		TopicPropertyDelete.String(): TopicPropertyDelete,
		TopicPropertyQuery.String():  TopicPropertyQuery,
		TopicPropertyUpdate.String(): TopicPropertyUpdate,
	}

	// TopicRequestMap is the map of topic name to request message.
	// nolint: exhaustruct
	TopicRequestMap = map[bus.Topic]func() proto.Message{
		TopicStreamWrite: func() proto.Message {
			return &streamv1.InternalWriteRequest{}
		},
		TopicStreamQuery: func() proto.Message {
			return &streamv1.QueryRequest{}
		},
		TopicMeasureWrite: func() proto.Message {
			return &measurev1.InternalWriteRequest{}
		},
		TopicMeasureQuery: func() proto.Message {
			return &measurev1.QueryRequest{}
		},
		TopicTopNQuery: func() proto.Message {
			return &measurev1.TopNRequest{}
		},
		TopicPropertyUpdate: func() proto.Message {
			return &propertyv1.InternalUpdateRequest{}
		},
		TopicPropertyQuery: func() proto.Message {
			return &propertyv1.QueryRequest{}
		},
		TopicPropertyDelete: func() proto.Message {
			return &propertyv1.InternalDeleteRequest{}
		},
	}

	// TopicResponseMap is the map of topic name to response message.
	// nolint: exhaustruct
	TopicResponseMap = map[bus.Topic]func() proto.Message{
		TopicStreamQuery: func() proto.Message {
			return &streamv1.QueryResponse{}
		},
		TopicMeasureQuery: func() proto.Message {
			return &measurev1.QueryResponse{}
		},
		TopicTopNQuery: func() proto.Message {
			return &measurev1.TopNResponse{}
		},
		TopicPropertyQuery: func() proto.Message {
			return &propertyv1.InternalQueryResponse{}
		},
		TopicPropertyDelete: func() proto.Message {
			return &propertyv1.DeleteResponse{}
		},
		TopicPropertyUpdate: func() proto.Message {
			return &propertyv1.ApplyResponse{}
		},
	}

	// TopicCommon is the common topic for data transmission.
	TopicCommon = bus.Topic{}
)
View Source
var MeasureDeleteExpiredSegmentsKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "measure-delete-expired-segments",
}

MeasureDeleteExpiredSegmentsKindVersion is the version tag of measure delete kind.

View Source
var MeasureQueryKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "measure-query",
}

MeasureQueryKindVersion is the version tag of measure query kind.

View Source
var MeasureWriteKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "measure-write",
}

MeasureWriteKindVersion is the version tag of measure write kind.

View Source
var PropertyDeleteKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "property-delete",
}

PropertyDeleteKindVersion is the version tag of property delete kind.

View Source
var PropertyQueryKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "property-query",
}

PropertyQueryKindVersion is the version tag of property query kind.

View Source
var PropertyUpdateKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "property-update",
}

PropertyUpdateKindVersion is the version tag of property update kind.

View Source
var SnapshotKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "snapshot",
}

SnapshotKindVersion is the version tag of snapshot kind.

View Source
var StreamDeleteExpiredSegmentsKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "stream-delete-expired-segments",
}

StreamDeleteExpiredSegmentsKindVersion is the version tag of stream delete segments kind.

View Source
var StreamQueryKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "stream-query",
}

StreamQueryKindVersion is the version tag of stream query kind.

View Source
var StreamWriteKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "stream-write",
}

StreamWriteKindVersion is the version tag of stream write kind.

View Source
var TopNQueryKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "topN-query",
}

TopNQueryKindVersion is the version tag of top-n query kind.

View Source
var TopicDeleteExpiredStreamSegments = bus.BiTopic(StreamDeleteExpiredSegmentsKindVersion.String())

TopicDeleteExpiredStreamSegments is the delete stream segments topic.

View Source
var TopicMeasureDeleteExpiredSegments = bus.BiTopic(MeasureDeleteExpiredSegmentsKindVersion.String())

TopicMeasureDeleteExpiredSegments is the measure delete topic.

View Source
var TopicMeasureQuery = bus.BiTopic(MeasureQueryKindVersion.String())

TopicMeasureQuery is the measure query topic.

View Source
var TopicMeasureWrite = bus.BiTopic(MeasureWriteKindVersion.String())

TopicMeasureWrite is the measure write topic.

View Source
var TopicPropertyDelete = bus.BiTopic(PropertyDeleteKindVersion.String())

TopicPropertyDelete is the property update topic.

View Source
var TopicPropertyQuery = bus.BiTopic(PropertyQueryKindVersion.String())

TopicPropertyQuery is the property query topic.

View Source
var TopicPropertyUpdate = bus.BiTopic(PropertyUpdateKindVersion.String())

TopicPropertyUpdate is the property update topic.

View Source
var TopicSnapshot = bus.BiTopic(SnapshotKindVersion.String())

TopicSnapshot is the snapshot topic.

View Source
var TopicStreamQuery = bus.BiTopic(StreamQueryKindVersion.String())

TopicStreamQuery is the stream query topic.

View Source
var TopicStreamWrite = bus.BiTopic(StreamWriteKindVersion.String())

TopicStreamWrite is the stream write topic.

View Source
var TopicTopNQuery = bus.BiTopic(TopNQueryKindVersion.String())

TopicTopNQuery is the top-n query topic.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL