Documentation ¶
Index ¶
- Constants
- func RenderCreator() protocol.CompRender
- type ApiEditor
- func (ae *ApiEditor) ExecuteApi(ops interface{}) error
- func (ae *ApiEditor) GenExecuteButton() (string, error)
- func (ae *ApiEditor) Render(ctx context.Context, c *apistructs.Component, ...) error
- func (ae *ApiEditor) Save(c *apistructs.Component) error
- func (ae *ApiEditor) SetCtxBundle(b protocol.ContextBundle) error
- type AttemptTestAll
- type ClickOperation
- type Input
- type Menu
- type Meta
- type OpMetaInfo
- type State
Constants ¶
View Source
const (
EmptySpecID string = "undefined"
)
Variables ¶
This section is empty.
Functions ¶
func RenderCreator ¶
func RenderCreator() protocol.CompRender
Types ¶
type ApiEditor ¶
type ApiEditor struct { State State `json:"state"` // contains filtered or unexported fields }
func (*ApiEditor) ExecuteApi ¶
ExecuteApi 小试一把
func (*ApiEditor) GenExecuteButton ¶
func (*ApiEditor) Render ¶
func (ae *ApiEditor) Render(ctx context.Context, c *apistructs.Component, scenario apistructs.ComponentProtocolScenario, event apistructs.ComponentEvent, gs *apistructs.GlobalStateData) error
func (*ApiEditor) SetCtxBundle ¶
func (ae *ApiEditor) SetCtxBundle(b protocol.ContextBundle) error
SetCtxBundle 设置bundle
type AttemptTestAll ¶
type ClickOperation ¶
type Input ¶
type Input struct { Label string `json:"label"` Value string `json:"value"` IsLeaf bool `json:"isLeaf"` ToolTip string `json:"tooltip"` Children []Input `json:"children"` }
Input 接口入参结构体
type Meta ¶
type Meta struct { Env string `json:"env"` ScenesID uint64 `json:"scenesID"` ConfigEnv string `json:"configEnv"` }
func GetOpsInfo ¶
type OpMetaInfo ¶
type OpMetaInfo struct {
Meta Meta `json:"meta"`
}
Click to show internal directories.
Click to hide internal directories.