structs

package
v0.0.10-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo added in v0.0.8

type AppInfo struct {
	Namespace   string                      `json:"namespace"`
	Label       i18n.I18nCnUs               `json:"label"`
	Description i18n.I18nCnUs               `json:"description"`
	CreatedAt   int64                       `json:"createdAt"`
	CreatedBy   *reference.LookupWithAvatar `json:"createdBy"`
}

type AppTokenResp

type AppTokenResp struct {
	AccessToken string     `json:"accessToken"`
	ExpireTime  int64      `json:"expireTime"`
	Namespace   string     `json:"namespace"`
	TenantInfo  TenantInfo `json:"tenantInfo"`
}

type AppTokenResult

type AppTokenResult struct {
	Code string       `json:"code"`
	Msg  string       `json:"msg"`
	Data AppTokenResp `json:"data"`
}

type CfVariable deprecated added in v0.0.2

type CfVariable struct {
	Value     interface{} `json:"value"`
	FieldType string      `json:"type"`
	VarType   string      `json:"varType"`
}

Deprecated: 已废弃 CfVariable 流程变量

type EventInfo added in v0.0.8

type EventInfo struct {
	Type       string        `json:"type"`
	Name       i18n.I18nCnUs `json:"name"`
	ApiName    string        `json:"apiName"`
	InstanceId int64         `json:"instanceId"`
}

type Flow

type Flow struct {
	Execution FlowExecution `json:"execution"`
	APIName   string        `json:"apiName"`
	// Deprecated: 已废弃
	Variables map[string]CfVariable `json:"variables"`
}

type FlowExecution

type FlowExecution struct {
	// 流程实例 ID
	ID int64 `json:"id"`
}

FlowExecution 流程实例相关

type FunctionIOParam added in v0.0.19

type FunctionIOParam struct {
	Input  []*IOParamItem `json:"input"`
	Output []*IOParamItem `json:"output"`
}

type FunctionMeta added in v0.0.19

type FunctionMeta struct {
	ApiName string          `json:"apiName"`
	IOParam FunctionIOParam `json:"io_param"`
}

type HttpConfig

type HttpConfig struct {
	Domain             string
	MaxIdleConn        int
	MaxIdleConnPerHost int
	IdleConnTimeout    time.Duration
}

type I18n

type I18n []map[string]interface{}

type IOParamItem added in v0.0.19

type IOParamItem struct {
	Key           string `json:"key" `
	Type          string `json:"type"`
	ObjectAPIName string `json:"objectApiName"`
}

type Initiator

type Initiator struct {
	ID int64 `json:"_id"`
}

type ParamUnauthField added in v0.0.19

type ParamUnauthField struct {
	Type             string     `json:"type"`
	UnauthFields     []string   `json:"unauthFields"`
	UnauthFieldsList [][]string `json:"unauthFieldsList"`
}

type Permission added in v0.0.19

type Permission struct {
	UnauthFields map[string]interface{} `json:"_unauthFields"`
}

type RPCCliConf

type RPCCliConf struct {
	Psm         string        `yaml:"Psm" json:"Psm"`
	DebugAddr   string        `yaml:"DebugAddr" json:"DebugAddr"`
	Cluster     string        `yaml:"Cluster" json:"Cluster"`
	IDC         string        `yaml:"IDC" json:"IDC"`
	Timeout     time.Duration `yaml:"Timeout" json:"Timeout"`
	ConnTimeout time.Duration `yaml:"ConnTimeout" json:"ConnTimeout"`
}

type RecordOnlyID added in v0.0.19

type RecordOnlyID struct {
	ID interface{} `json:"_id"`
}

func (RecordOnlyID) GetID added in v0.0.19

func (r RecordOnlyID) GetID() (id int64)

type Tenant

type Tenant struct {
	ID        int64  `json:"id"`
	Name      string `json:"name"`
	Type      int64  `json:"type"`
	Namespace string `json:"namespace"`
	Domain    string `json:"domain"`
}

type TenantInfo

type TenantInfo struct {
	ID                int64  `json:"id"`
	DomainName        string `json:"domainName"`
	TenantName        string `json:"tenantName"`
	TenantType        int64  `json:"tenantType"`
	OutsideTenantInfo struct {
		OutsideDomainName string `json:"outsideDomainName"`
	} `json:"outsideTenantInfo"`
}

type UserContext

type UserContext struct {
	Flow       Flow `json:"flow"`
	Permission struct {
		UnauthFields map[string]interface{} `json:"_unauthFields"`
	} `json:"permission"`
}

UserContext 上下文参数

type WebIDELog added in v0.0.7

type WebIDELog struct {
	Source  string    `json:"source"`
	Time    time.Time `json:"time"`
	Type    string    `json:"type"`
	Level   string    `json:"level"`
	Message string    `json:"message"`
}

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

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