ssemodels

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SseMessage

type SseMessage struct {
	Id    string      `json:"id omitempty"`
	Event SseType     `json:"event"`
	Data  interface{} `json:"data"`
}

type SseType

type SseType string
const (
	SseType_Unknown              SseType = "unknown"
	SseType_Time                 SseType = "time"
	SseType_Cluster_Created      SseType = "cluster.created"
	SseType_ClusterOrder_Updated SseType = "clusterOrder.updated"
)

type Time deprecated

type Time struct {
	Event       SseType   `json:"event"`
	CurrentTime time.Time `json:"currentTime"`
}

Deprecated: Use SseMessage instead, this is not a valid format

Jump to

Keyboard shortcuts

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