Versions in this module Expand all Collapse all v0 v0.13.1 Nov 1, 2024 Changes in this version + const ApiVersion + type JobFilter struct + EndedAt time.Time v0.12.2 Oct 24, 2024 v0.12.1 Oct 24, 2024 Changes in this version + const BotRunAgentTotalStatsName + const BotRunCommandTotalStatsName + const BotRunConditionTotalStatsName + const BotRunCronTotalStatsName + const BotRunFormTotalStatsName + const BotRunGroupTotalStatsName + const BotRunInputTotalStatsName + const BotTotalStatsName + const BotTriggerPipelineTotalStatsName + const InstructPushEvent + const MessageSendEvent + const MountTypeBind + const MountTypeTmpfs + const MountTypeVolume + func AppUrl() string + func ExtractText(content interface{}) string + func Id() string + func TimeNow() time.Time + func TypeOf(payload MsgPayload) string + type Action string + const Ack + const Agent + const Bots + const Help + const Info + const Pull + type ActionMsg struct + ID string + Option []string + Title string + Value string + func (a ActionMsg) Convert() (KV, interface{}) + type AttachmentOption struct + Mime string + RelativeUrl string + Size int + type AudioMsg struct + Alt string + Duration float64 + Src string + func (i AudioMsg) Convert() (KV, interface{}) + type CardListMsg struct + Cards []CardMsg + func (m CardListMsg) Convert() (KV, interface{}) + type CardMsg struct + Image string + Name string + Text string + URI string + func (m CardMsg) Convert() (KV, interface{}) + type ChartMsg struct + Series []float64 + SubTitle string + Title string + XAxis []string + func (t ChartMsg) Convert() (KV, interface{}) + type ChatMessage struct + Ent []EntMessage + Fmt []FmtMessage + IsPlainText bool + MessageType string + Src MsgPayload + Text string + Tye string + func (c ChatMessage) Content() (map[string]interface{}, interface{}) + func (c ChatMessage) GetEntDatas(tp string) []EntData + func (c ChatMessage) GetFormattedText() string + func (c ChatMessage) GetGenericAttachment() []EntData + func (c ChatMessage) GetHashTags() []EntData + func (c ChatMessage) GetImages() []EntData + func (c ChatMessage) GetLinks() []EntData + func (c ChatMessage) GetMentions() []EntData + type Context struct + AgentId string + AgentVersion int + AsUser Uid + FormId string + FormRuleId string + Id string + PageRuleId string + Platform string + Token string + ToolRuleId string + Topic string + WorkflowRuleId string + func (c *Context) Cancel() context.CancelFunc + func (c *Context) Context() context.Context + func (c *Context) SetTimeout(timeout time.Duration) + type CrateMsg struct + Description string + Documentation string + Downloads int + Homepage string + ID string + Name string + NewestVersion string + Repository string + func (c CrateMsg) Convert() (KV, interface{}) + type DataFilter struct + CreatedEnd *time.Time + CreatedStart *time.Time + Prefix *string + type DigitMsg struct + Digit int + Title string + func (a DigitMsg) Convert() (KV, interface{}) + type EntData struct + Act string + Height int + Mime string + Name string + Ref string + Size int + Url string + Val interface{} + Width int + type EntMessage struct + Data EntData + Tp string + type EventPayload struct + Src []byte + Typ string + type FileDef struct + Location string + MimeType string + Size int64 + Status int + User string + func (i *FileDef) Uid() Uid + type FileMsg struct + Alt string + Src string + func (i FileMsg) Convert() (KV, interface{}) + type FileOption struct + ContentBase64 string + Mime string + type FlowkitData struct + Action Action + Content KV + Version int + type FmtMessage struct + At int + Key int + Len int + Tp string + type FormField struct + Key string + Label string + Option []string + Placeholder string + Rule string + Type FormFieldType + Value interface{} + ValueType FormFieldValueType + type FormFieldType string + const FormFieldCheckbox + const FormFieldColor + const FormFieldDate + const FormFieldEmail + const FormFieldFile + const FormFieldHidden + const FormFieldMonth + const FormFieldNumber + const FormFieldPassword + const FormFieldRadio + const FormFieldRange + const FormFieldSelect + const FormFieldText + const FormFieldTextarea + const FormFieldTime + const FormFieldUrl + type FormFieldValueType string + const FormFieldValueBool + const FormFieldValueFloat64 + const FormFieldValueFloat64Slice + const FormFieldValueInt64 + const FormFieldValueInt64Slice + const FormFieldValueString + const FormFieldValueStringSlice + type FormMsg struct + Field []FormField + ID string + Title string + func (a FormMsg) Convert() (KV, interface{}) + type HtmlMsg struct + Raw string + func (m HtmlMsg) Convert() (KV, interface{}) + type ImageMsg struct + Alt string + Height int + ImageBase64 string + Mime string + Size int + Src string + Width int + func ImageConvert(data []byte, name string, width, height int) ImageMsg + func (i ImageMsg) Convert() (KV, interface{}) + type ImageOption struct + Height int + ImageBase64 string + Mime string + Size int + Width int + type InfoMsg struct + Model interface{} + Title string + func (i InfoMsg) Convert() (KV, interface{}) + type InstructMsg struct + Bot string + Content KV + ExpireAt time.Time + Flag string + No string + Object model.InstructObject + Priority model.InstructPriority + State model.InstructState + func (t InstructMsg) Convert() (KV, interface{}) + type KV map[string]interface + func (j *KV) Scan(value interface{}) error + func (j KV) Any(key string) (any, bool) + func (j KV) Float64(key string) (float64, bool) + func (j KV) Float64Value() (float64, bool) + func (j KV) Int64(key string) (int64, bool) + func (j KV) Int64Value() (int64, bool) + func (j KV) List(key string) ([]any, bool) + func (j KV) Map(key string) (map[string]interface{}, bool) + func (j KV) Merge(kvs ...KV) KV + func (j KV) String(key string) (string, bool) + func (j KV) StringValue() (string, bool) + func (j KV) Uint64(key string) (uint64, bool) + func (j KV) Uint64Value() (uint64, bool) + func (j KV) Value() (driver.Value, error) + func Convert(payloads []MsgPayload) ([]KV, []any) + type KVMsg map[string]any + func (t KVMsg) Convert() (KV, interface{}) + type LinkListMsg struct + Links []LinkMsg + func (m LinkListMsg) Convert() (KV, interface{}) + type LinkMsg struct + Cover string + Title string + Url string + func (a LinkMsg) Convert() (KV, interface{}) + type LocationMsg struct + Address string + Latitude float64 + Longitude float64 + func (a LocationMsg) Convert() (KV, interface{}) + type MarkdownMsg struct + Raw string + Title string + func (m MarkdownMsg) Convert() (KV, interface{}) + type Message struct + Payload EventPayload + Platform string + Topic string + type Mount struct + Source string + Target string + Type string + type MsgBuilder struct + Message ChatMessage + Payload MsgPayload + func (m *MsgBuilder) AppendAttachment(fileName string, opt AttachmentOption) + func (m *MsgBuilder) AppendFile(fileName string, opt FileOption) + func (m *MsgBuilder) AppendImage(imageName string, opt ImageOption) + func (m *MsgBuilder) AppendText(text string, opt TextOption) + func (m *MsgBuilder) AppendTextLine(text string, opt TextOption) + func (m *MsgBuilder) BuildAttachmentMessage(fileName string, text string, opt AttachmentOption) ChatMessage + func (m *MsgBuilder) BuildFileMessage(fileName string, text string, opt FileOption) ChatMessage + func (m *MsgBuilder) BuildImageMessage(imageName string, text string, opt ImageOption) ChatMessage + func (m *MsgBuilder) BuildTextMessage(text string) ChatMessage + func (m *MsgBuilder) Content() (map[string]interface{}, interface{}) + func (m *MsgBuilder) Parse(message ServerData) (ChatMessage, error) + type MsgPayload interface + Convert func() (KV, interface{}) + func ToPayload(typ string, src []byte) MsgPayload + type ObjHeader struct + CreatedAt time.Time + Id string + UpdatedAt time.Time + type OkrMsg struct + KeyResult []*model.KeyResult + Objective *model.Objective + Title string + func (o OkrMsg) Convert() (KV, interface{}) + type QuestionMsg struct + Difficulty int + Id int + Slug string + Source string + Title string + func (m QuestionMsg) Convert() (KV, interface{}) + type Registry struct + Password string + Username string + func (r *Registry) Clone() *Registry + type RepoMsg struct + Archived *bool + CreatedAt *time.Time + Description *string + Disabled *bool + Fork *bool + ForksCount *int + FullName *string + HTMLURL *string + Homepage *string + ID *int64 + Language *string + Name *string + NetworkCount *int + NodeID *string + OpenIssuesCount *int + PushedAt *time.Time + Size *int + StargazersCount *int + SubscribersCount *int + Topics []string + UpdatedAt *time.Time + WatchersCount *int + func (i RepoMsg) Convert() (KV, interface{}) + type ScriptMsg struct + Code string + Kind string + func (a ScriptMsg) Convert() (KV, interface{}) + type SendFunc func(topic string, uid Uid, out MsgPayload, option ...interface{}) + type ServerData struct + Content string + Head string + Topic string + type TableMsg struct + Header []string + Row [][]interface{} + Title string + func (t TableMsg) Convert() (KV, interface{}) + type Task struct + CMD []string + CompletedAt *time.Time + CreatedAt *time.Time + Entrypoint []string + Env map[string]string + Error string + FailedAt *time.Time + Files map[string]string + GPUs string + ID string + Image string + Limits *TaskLimits + Mounts []Mount + Networks []string + Post []*Task + Pre []*Task + Registry *Registry + Result string + Retry *TaskRetry + Run string + StartedAt *time.Time + State TaskState + Timeout string + func CloneTasks(tasks []*Task) []*Task + func (t *Task) Clone() *Task + type TaskLimits struct + CPUs string + Memory string + func (l *TaskLimits) Clone() *TaskLimits + type TaskRetry struct + Attempts int + Limit int + func (r *TaskRetry) Clone() *TaskRetry + type TaskState string + const TaskStateCancelled + const TaskStateCompleted + const TaskStateFailed + const TaskStatePending + const TaskStateRunning + const TaskStateStopped + func (s TaskState) IsActive() bool + type TextListMsg struct + Texts []string + func (m TextListMsg) Convert() (KV, interface{}) + type TextMsg struct + Text string + func (t TextMsg) Convert() (KV, interface{}) + type TextOption struct + ButtonDataAct string + ButtonDataName string + ButtonDataRef string + ButtonDataVal string + IsBold bool + IsButton bool + IsCode bool + IsDeleted bool + IsForm bool + IsHashTag bool + IsItalic bool + IsLink bool + IsMention bool + type TodoMsg struct + Title string + Todo []*model.Todo + func (t TodoMsg) Convert() (KV, interface{}) + type UI struct + App app.UI + CSS []app.UI + Global KV + JS []app.HTMLScript + Title string + type Uid string + const ZeroUid + func (uid Uid) IsZero() bool + func (uid Uid) String() string + type VideoMsg struct + Alt string + Duration float64 + Height int + Src string + Width int + func (i VideoMsg) Convert() (KV, interface{}) + type WorkflowMetadata struct + Describe string + Name string + Pipeline []string + Tasks []WorkflowTask + Triggers []struct{ ... } + type WorkflowTask struct + Action string + Conn []string + Describe string + ID string + Params KV + Vars []string