Documentation
¶
Index ¶
- Constants
- type Account
- type AppSettings
- type Artifact
- type ArtifactAction
- type Client
- type Config
- type HeartBeat
- type HeartBeatStatus
- type Http
- type HttpPost
- type ImplType
- type Implementation
- type Log
- type LogLevel
- type Logging
- type Message
- type MetaData
- type NTQQImpl
- type RangePort
- type Response
- type ReverseWebSocket
- type Update
- type WebSocket
- type WorkflowAction
- type WorkflowRun
Constants ¶
View Source
const ( EMBED = ImplType("EMBED") EXTERNAL = ImplType("EXTERNAL") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppSettings ¶
type AppSettings struct { Logging *Logging `json:"Logging"` SignServerURL string `json:"SignServerUrl"` Account *Account `json:"Account"` Message *Message `json:"Message"` Implementations []*Implementation `json:"Implementations"` }
type Artifact ¶
type Artifact struct { ID int64 `json:"id"` NodeID string `json:"node_id"` Name string `json:"name"` SizeInBytes int64 `json:"size_in_bytes"` URL string `json:"url"` ArchiveDownloadURL string `json:"archive_download_url"` Expired bool `json:"expired"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` ExpiresAt time.Time `json:"expires_at"` WorkflowRun *WorkflowRun `json:"workflow_run"` }
type ArtifactAction ¶
type Config ¶
type Config struct { Log *Log `yaml:"log"` NTQQImpl *NTQQImpl `yaml:"ntqq-impl"` Http *Http `yaml:"http"` WebSocket *WebSocket `yaml:"web-socket"` ReverseWebSocket []*ReverseWebSocket `yaml:"reverse-web-socket"` HttpPost []*HttpPost `yaml:"http-post"` MsgExpireTime time.Duration `yaml:"msg-expire-time,omitempty"` }
type HeartBeat ¶
type HeartBeat struct { MetaData Interval int `json:"interval"` HeartBeatStatus *HeartBeatStatus `json:"status"` }
type HeartBeatStatus ¶
type Implementation ¶
type Response ¶
type Response struct { /** * 状态, 表示 API 是否调用成功 * - ok api 调用成功 * - async api 调用已经提交异步处理, 具体 api 调用是否成功无法得知 * - failed api 调用失败 * */ Status string `json:"status"` /** * 响应码 * - 0 调用成功 * - 1 已提交 async 处理 * - 其他 操作失败, 具体原因可以看响应的 msg 字段 * */ RetCode int32 `json:"retcode"` /** * 错误消息, 仅在 API 调用失败时存在该字段 * */ Msg string `json:"msg,omitempty"` /** * 响应数据 * */ Data any `json:"data,omitempty"` }
type ReverseWebSocket ¶ added in v0.2.0
type WorkflowAction ¶
type WorkflowAction struct { TotalCount int64 `json:"total_count"` WorkflowRuns []*WorkflowRun `json:"workflow_runs"` }
type WorkflowRun ¶
type WorkflowRun struct { ID int64 `json:"id"` Name string `json:"name"` HeadSha string `json:"head_sha"` Path string `json:"path"` DisplayTitle string `json:"display_title"` Status string `json:"status"` Conclusion string `json:"conclusion"` WorkflowID int64 `json:"workflow_id"` URL string `json:"url"` HTMLURL string `json:"html_url"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` JobsURL string `json:"jobs_url"` ArtifactsURL string `json:"artifacts_url"` }
Click to show internal directories.
Click to hide internal directories.