types

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompareConfigureReply

type CompareConfigureReply struct {
	Type string `json:"type"`
	Key  string `json:"key"`
	Old  string `json:"old"`
	Cur  string `json:"cur"`
}

type CompareConfigureRequest

type CompareConfigureRequest struct {
	App   string `json:"app"`
	EnvId uint32 `json:"envId"`
}

type CompareTemplateReply

type CompareTemplateReply struct {
	Type string `json:"type"`
	Key  string `json:"key"`
	Old  string `json:"old"`
	Cur  string `json:"cur"`
}

type CompareTemplateRequest

type CompareTemplateRequest struct {
	Id      uint32 `json:"id"`
	Format  string `json:"format"`
	Content string `json:"content"`
}

type GetSettingsReply added in v1.0.50

type GetSettingsReply struct {
	App    string          `json:"app"`    // 应用标识
	EnvId  uint32          `json:"envId"`  // 环境 ID
	Format string          `json:"format"` // 当前模板格式(json | yaml)
	Items  []*SettingsItem `json:"items"`  // 配置项列表
}

GetSettingsReply 系统配置响应

type ListBusinessRequest

type ListBusinessRequest struct {
	Page     uint32  `json:"page"`
	PageSize uint32  `json:"pageSize"`
	App      string  `json:"app"`
	Order    *string `json:"order"`
	OrderBy  *string `json:"orderBy"`
	Keyword  *string `json:"keyword"`
}

type ListBusinessValueRequest

type ListBusinessValueRequest struct {
	App        *string `json:"app"`
	BusinessId *uint32 `json:"businessId"`
	EnvId      *uint32 `json:"envId"`
}

type ListConfigureRequest

type ListConfigureRequest struct {
	Page     uint32 `json:"page"`
	PageSize uint32 `json:"pageSize"`
	App      string `json:"app"`
	EnvId    uint32 `json:"envId"`
}

type ListEnvRequest

type ListEnvRequest struct {
	Keyword *string  `json:"keyword"`
	Name    *string  `json:"name"`
	Status  *bool    `json:"status"`
	Ids     []uint32 `json:"ids"`
}

type ListResourceRequest

type ListResourceRequest struct {
	Page     uint32  `json:"page"`
	PageSize uint32  `json:"pageSize"`
	Order    *string `json:"order"`
	OrderBy  *string `json:"orderBy"`
	Keyword  *string `json:"keyword"`
	Tag      *string `json:"tag"`
	Private  *bool   `json:"private"`
	App      *string `json:"app"`
}

type ListResourceValueRequest

type ListResourceValueRequest struct {
	App        *string `json:"app"`
	ResourceId *uint32 `json:"resourceId"`
	EnvId      *uint32 `json:"envId"`
}

type ListTemplateNamespaceRequest added in v1.0.50

type ListTemplateNamespaceRequest struct {
	Page      uint32  `json:"page"`
	PageSize  uint32  `json:"pageSize"`
	App       string  `json:"app"`
	Namespace *string `json:"namespace"`
	Name      *string `json:"name"`
}

type ListTemplateRequest

type ListTemplateRequest struct {
	Page      uint32  `json:"page"`
	PageSize  uint32  `json:"pageSize"`
	App       string  `json:"app"`
	Namespace *string `json:"namespace"`
}

type PreviewCurrentTemplateRequest

type PreviewCurrentTemplateRequest struct {
	EnvId     uint32 `json:"envId"`
	App       string `json:"app"`
	Namespace string `json:"namespace"`
}

type PreviewTemplateReply

type PreviewTemplateReply struct {
	Format  string `json:"format"`
	Content string `json:"content"`
}

type PreviewTemplateRequest

type PreviewTemplateRequest struct {
	EnvId     uint32 `json:"envId"`
	App       string `json:"app"`
	Namespace string `json:"namespace"`
	Format    string `json:"format"`
	Content   string `json:"content"`
}

type SettingsItem added in v1.0.50

type SettingsItem struct {
	Keyword     string `json:"keyword"`     // 变量 key(对应模板 ${keyword})
	Type        string `json:"type"`        // 值类型:string | text | int | float | bool | enum | object | kv | array
	Description string `json:"description"` // 变量说明
	Extra       string `json:"extra"`       // 渲染元数据(JSON 字符串)
	Value       string `json:"value"`       // 当前值(原始字符串;未设置 = 空)
}

SettingsItem 系统配置项(模板引用的业务变量 + 当前环境值)

type UpdateSettingsItem added in v1.0.50

type UpdateSettingsItem struct {
	Keyword string `json:"keyword"` // 变量 key
	Value   string `json:"value"`   // 配置值(原始字符串)
}

UpdateSettingsItem 系统配置保存项

type WatcherConfigReplyFunc

type WatcherConfigReplyFunc func(*WatcherConfigureReply) error

type WatcherConfigRequest

type WatcherConfigRequest struct {
	Token string
	App   string
}

type WatcherConfigureReply

type WatcherConfigureReply struct {
	Format  string `json:"format"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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