protocol

package
v0.0.0-...-3b4426b Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMessageType = struct {
	CloudEvent       MessageType
	OpenMessage      MessageType
	EventMeshMessage MessageType
}{
	CloudEvent:       "CloudEvent",
	OpenMessage:      "OpenMessage",
	EventMeshMessage: "EventMeshMessage",
}
View Source
var DefaultSubscriptionMode = struct {
	BROADCASTING SubscriptionMode
	CLUSTERING   SubscriptionMode
}{
	BROADCASTING: "BROADCASTING",
	CLUSTERING:   "CLUSTERING",
}
View Source
var DefaultSubscriptionType = struct {
	SYNC  SubscriptionType
	ASYNC SubscriptionType
}{
	SYNC:  "SYNC",
	ASYNC: "ASYNC",
}

Functions

This section is empty.

Types

type EventMeshMessage

type EventMeshMessage struct {
	BizSeqNo string            `json:"biz_seq_no"`
	UniqueId string            `json:"unique_id"`
	Topic    string            `json:"topic"`
	Content  string            `json:"content"`
	Prop     map[string]string `json:"prop"`
}

type MessageType

type MessageType string

type SubscriptionItem

type SubscriptionItem struct {
	Topic string           `json:"topic"`
	Mode  SubscriptionMode `json:"mode"`
	Type  SubscriptionType `json:"type"`
}

type SubscriptionMode

type SubscriptionMode string

type SubscriptionType

type SubscriptionType string

Directories

Path Synopsis
http
tcp

Jump to

Keyboard shortcuts

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