data

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package data contains data transmission topics.

Index

Constants

This section is empty.

Variables

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 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.

TopicMap is the map of topic name to topic.

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

TopicMeasureQuery is the measure query topic.

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

TopicMeasureWrite is the measure write topic.

View Source
var 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{}
	},
}

TopicRequestMap is the map of topic name to request message.

View Source
var 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{}
	},
}

TopicResponseMap is the map of topic name to response message.

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

TopicStreamQuery is the stream query topic.

View Source
var TopicStreamWrite = bus.UniTopic(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