event_status_info

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Key     string       `json:"key"`
	Target  string       `json:"target"`
	State   CommandState `json:"state"`
	JumpOut bool         `json:"jumpOut"`
}

type CommandState

type CommandState struct {
	Params map[string]string `json:"params"`
	Query  map[string]string `json:"query,omitempty"`
}

type ComponentEventStatusInfo

type ComponentEventStatusInfo struct {
	Type  string          `json:"type,omitempty"`
	Props Props           `json:"props"`
	Data  map[string]Data `json:"data,omitempty"`
	State State           `json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*ComponentEventStatusInfo) GenComponentState

func (cp *ComponentEventStatusInfo) GenComponentState(c *cptype.Component) error

func (*ComponentEventStatusInfo) Render

func (*ComponentEventStatusInfo) Transfer

func (cp *ComponentEventStatusInfo) Transfer(component *cptype.Component)

type Data

type Data struct {
	SuppressExpireTime string `json:"suppressExpireTime"`
	AlertState         []Tag  `json:"alertState"`
}

type Field

type Field struct {
	Label      string               `json:"label"`
	ValueKey   string               `json:"valueKey"`
	RenderType string               `json:"renderType,omitempty"`
	Operations map[string]Operation `json:"operations,omitempty"`
	SpaceNum   int                  `json:"spaceNum,omitempty"`
	Color      string               `json:"color,omitempty"`
}

type Operation

type Operation struct {
	Key     string  `json:"key"`
	Reload  bool    `json:"reload"`
	Command Command `json:"command,omitempty"`
}

type Props

type Props struct {
	RequestIgnore []string `json:"requestIgnore,omitempty"`
	ColumnNum     int      `json:"columnNum"`
	Fields        []Field  `json:"fields"`
}

type State

type State struct {
}

type Tag

type Tag struct {
	Label string `json:"label,omitempty"`
	Group string `json:"group,omitempty"`
	Color string `json:"color,omitempty"`
}

Jump to

Keyboard shortcuts

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