filter

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderCreator

func RenderCreator() protocol.CompRender

Types

type CommonFilter

type CommonFilter struct {
	Version    string                 `json:"version,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Type       string                 `json:"type,omitempty"`
	Props      Props                  `json:"props,omitempty"`
	State      State                  `json:"state,omitempty"`
	Operations map[string]interface{} `json:"operations,omitempty"`
}

type ComponentFilter

type ComponentFilter struct {
	CommonFilter
	// contains filtered or unexported fields
}

func (*ComponentFilter) GenComponentState

func (i *ComponentFilter) GenComponentState(c *apistructs.Component) error

GenComponentState 获取state

func (*ComponentFilter) RenderProtocol

RenderProtocol 渲染组件

func (*ComponentFilter) SetComponentValue

func (i *ComponentFilter) SetComponentValue()

func (*ComponentFilter) SetCtxBundle

func (i *ComponentFilter) SetCtxBundle(b protocol.ContextBundle) error

SetCtxBundle 设置bundle

type Operations

type Operations struct {
	Reload bool   `json:"reload"`
	Key    string `json:"key"`
}

type Options

type Options struct {
	Key        string `json:"key"`
	Text       string `json:"text"`
	Operations map[string]interface{}
}

type Props

type Props struct {
	Delay   uint64 `json:"delay"`
	Visible bool   `json:"visible"`
}

type State

type State struct {
	Values        map[string]interface{} `json:"values"`
	Conditions    []StateConditions      `json:"conditions"`
	IsFirstFilter bool                   `json:"isFirstFilter"`
	IsEmpty       bool                   `json:"isEmpty"`
}

type StateConditions

type StateConditions struct {
	Key         string `json:"key"`
	Label       string `json:"label"`
	EmptyText   string `json:"emptyText"`
	Fixed       bool   `json:"fixed"`
	ShowIndex   uint64 `json:"showIndex"`
	Placeholder string `json:"placeholder"`
	Type        string `json:"type"`
}

Jump to

Keyboard shortcuts

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