structs

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 3 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       I18nCnUs          `json:"label"`
	Description I18nCnUs          `json:"description"`
	CreatedAt   int64             `json:"createdAt"`
	CreatedBy   *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 Avatar added in v0.0.23

type Avatar struct {
	Source  string            `json:"source"`
	Image   map[string]string `json:"image"`
	Color   *string           `json:"color"`
	Content I18ns             `json:"content"`
	ColorID *string           `json:"color_id"`
}

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       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 I18nCnUs added in v0.0.23

type I18nCnUs struct {
	ZhCn string `json:"zh_CN"`
	EnUs string `json:"en_US"`
}

type I18ns added in v0.0.23

type I18ns = []*struct {
	LanguageCode int64  `json:"language_code"`
	Text         string `json:"text"`
}

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 LookupWithAvatar added in v0.0.23

type LookupWithAvatar struct {
	ID       int64   `json:"id"`
	Name     *string `json:"name"`
	Avatar   *Avatar `json:"avatar"`
	TenantID *int64  `json:"tenant_id"`
	Email    *string `json:"email"`
}

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 SDKConf added in v0.0.23

type SDKConf struct {
	TransientConf *SDKTransientConf `json:"transientConf"`
}

type SDKTransientConf added in v0.0.23

type SDKTransientConf struct {
	IsCloseMesh        bool  `json:"isCloseMesh"`
	MeshDestReqTimeout int64 `json:"meshDestReqTimeout"`
}

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"`
}

Jump to

Keyboard shortcuts

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