data

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 7 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,
		TopicStreamPartSync.String():           TopicStreamPartSync,
		TopicMeasurePartSync.String():          TopicMeasurePartSync,
		TopicMeasureSeriesIndexInsert.String(): TopicMeasureSeriesIndexInsert,
		TopicMeasureSeriesIndexUpdate.String(): TopicMeasureSeriesIndexUpdate,
		TopicMeasureSeriesSync.String():        TopicMeasureSeriesSync,
		TopicPropertyRepair.String():           TopicPropertyRepair,
		TopicStreamSeriesIndexWrite.String():   TopicStreamSeriesIndexWrite,
		TopicStreamLocalIndexWrite.String():    TopicStreamLocalIndexWrite,
		TopicStreamSeriesSync.String():         TopicStreamSeriesSync,
		TopicStreamElementIndexSync.String():   TopicStreamElementIndexSync,
		TopicTraceWrite.String():               TopicTraceWrite,
		TopicTraceQuery.String():               TopicTraceQuery,
		TopicTracePartSync.String():            TopicTracePartSync,
		TopicTraceSidxSeriesWrite.String():     TopicTraceSidxSeriesWrite,
	}

	// 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{}
		},
		TopicStreamPartSync: func() proto.Message {
			return nil
		},
		TopicMeasurePartSync: func() proto.Message {
			return nil
		},
		TopicMeasureSeriesIndexInsert: func() proto.Message {
			return nil
		},
		TopicMeasureSeriesIndexUpdate: func() proto.Message {
			return nil
		},
		TopicMeasureSeriesSync: func() proto.Message {
			return nil
		},
		TopicPropertyRepair: func() proto.Message {
			return &propertyv1.InternalRepairRequest{}
		},
		TopicStreamSeriesIndexWrite: func() proto.Message {
			return nil
		},
		TopicStreamLocalIndexWrite: func() proto.Message {
			return nil
		},
		TopicStreamSeriesSync: func() proto.Message {
			return nil
		},
		TopicStreamElementIndexSync: func() proto.Message {
			return nil
		},
		TopicTraceWrite: func() proto.Message {
			return &tracev1.InternalWriteRequest{}
		},
		TopicTraceQuery: func() proto.Message {
			return &tracev1.QueryRequest{}
		},
		TopicTracePartSync: func() proto.Message {
			return nil
		},
		TopicTraceSidxSeriesWrite: func() proto.Message {
			return nil
		},
	}

	// 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{}
		},
		TopicPropertyRepair: func() proto.Message {
			return &propertyv1.InternalRepairResponse{}
		},
		TopicTraceQuery: func() proto.Message {
			return &tracev1.InternalQueryResponse{}
		},
	}

	// 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 MeasurePartSyncKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "measure-part-sync",
}

MeasurePartSyncKindVersion is the version tag of measure part sync kind.

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

MeasureQueryKindVersion is the version tag of measure query kind.

View Source
var MeasureSeriesIndexInsertKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "measure-series-index-insert",
}

MeasureSeriesIndexInsertKindVersion is the version tag of measure series index insert kind.

View Source
var MeasureSeriesIndexUpdateKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "measure-series-index-update",
}

MeasureSeriesIndexUpdateKindVersion is the version tag of measure series index update kind.

View Source
var MeasureSeriesSyncKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "measure-series-sync",
}

MeasureSeriesSyncKindVersion is the version tag of measure series sync 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 PropertyRepairKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "property-repair",
}

PropertyRepairKindVersion is the version tag of property repair 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 StreamElementIndexSyncKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "stream-element-index-sync",
}

StreamElementIndexSyncKindVersion is the version tag of element index sync kind.

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

StreamLocalIndexWriteKindVersion is the version tag of stream local index write kind.

View Source
var StreamPartSyncKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "stream-part-sync",
}

StreamPartSyncKindVersion is the version tag of part sync kind.

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

StreamQueryKindVersion is the version tag of stream query kind.

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

StreamSeriesIndexWriteKindVersion is the version tag of stream series index write kind.

View Source
var StreamSeriesSyncKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "stream-series-sync",
}

StreamSeriesSyncKindVersion is the version tag of series sync 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 TopicDeleteExpiredTraceSegments = bus.BiTopic(TraceDeleteExpiredSegmentsKindVersion.String())

TopicDeleteExpiredTraceSegments is the delete trace segments topic.

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

TopicMeasureDeleteExpiredSegments is the measure delete topic.

View Source
var TopicMeasurePartSync = bus.BiTopic(MeasurePartSyncKindVersion.String())

TopicMeasurePartSync is the measure part sync topic.

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

TopicMeasureQuery is the measure query topic.

View Source
var TopicMeasureSeriesIndexInsert = bus.BiTopic(MeasureSeriesIndexInsertKindVersion.String())

TopicMeasureSeriesIndexInsert is the measure series index insert topic.

View Source
var TopicMeasureSeriesIndexUpdate = bus.BiTopic(MeasureSeriesIndexUpdateKindVersion.String())

TopicMeasureSeriesIndexUpdate is the measure series index update topic.

View Source
var TopicMeasureSeriesSync = bus.BiTopic(MeasureSeriesSyncKindVersion.String())

TopicMeasureSeriesSync is the measure series sync 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 TopicPropertyRepair = bus.BiTopic(PropertyRepairKindVersion.String())

TopicPropertyRepair is the property repair 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 TopicStreamElementIndexSync = bus.BiTopic(StreamElementIndexSyncKindVersion.String())

TopicStreamElementIndexSync is the element index sync topic.

View Source
var TopicStreamLocalIndexWrite = bus.BiTopic(StreamLocalIndexWriteKindVersion.String())

TopicStreamLocalIndexWrite is the stream local index write topic.

View Source
var TopicStreamPartSync = bus.BiTopic(StreamPartSyncKindVersion.String())

TopicStreamPartSync is the part sync topic.

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

TopicStreamQuery is the stream query topic.

View Source
var TopicStreamSeriesIndexWrite = bus.BiTopic(StreamSeriesIndexWriteKindVersion.String())

TopicStreamSeriesIndexWrite is the stream series index write topic.

View Source
var TopicStreamSeriesSync = bus.BiTopic(StreamSeriesSyncKindVersion.String())

TopicStreamSeriesSync is the series sync 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.

View Source
var TopicTracePartSync = bus.BiTopic(TracePartSyncKindVersion.String())

TopicTracePartSync is the part sync topic.

View Source
var TopicTraceQuery = bus.BiTopic(TraceQueryKindVersion.String())

TopicTraceQuery is the trace query topic.

View Source
var TopicTraceSidxSeriesWrite = bus.BiTopic(TraceSidxSeriesWriteKindVersion.String())

TopicTraceSidxSeriesWrite is the trace sidx series write topic.

View Source
var TopicTraceWrite = bus.BiTopic(TraceWriteKindVersion.String())

TopicTraceWrite is the trace write topic.

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

TraceDeleteExpiredSegmentsKindVersion is the version tag of trace delete segments kind.

View Source
var TracePartSyncKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "trace-part-sync",
}

TracePartSyncKindVersion is the version tag of part sync kind.

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

TraceQueryKindVersion is the version tag of trace query kind.

View Source
var TraceSidxSeriesWriteKindVersion = common.KindVersion{
	Version: "v1",
	Kind:    "trace-sidx-series-write",
}

TraceSidxSeriesWriteKindVersion is the version tag of trace sidx series write kind.

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

TraceWriteKindVersion is the version tag of trace write kind.

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