Documentation
¶
Index ¶
Constants ¶
View Source
const ( ResWorkflowKeyPrefix = "org.basenana.workflow/" ResEntryIdKey = "org.basenana.workflow/entry_id" ResEntryPathKey = "org.basenana.workflow/entry_path" ResEntryURIKey = "org.basenana.workflow/entry_uri" ResEntryDocumentsKey = "org.basenana.workflow/entry_documents" ResEntryDocSummaryKey = "org.basenana.workflow/entry_summary" ResEntryDocKeyWordsKey = "org.basenana.workflow/entry_keywords" ResEntryDocIngestKey = "org.basenana.workflow/entry_ingest" ResEntryActionKey = "org.basenana.workflow/entry_action" ResCollectManifests = "org.basenana.workflow/collect_manifests" ResPluginName = "org.basenana.workflow/plugin_name" ResPluginVersion = "org.basenana.workflow/plugin_version" ResPluginType = "org.basenana.workflow/plugin_type" ResPluginAction = "org.basenana.workflow/plugin_action" )
View Source
const (
CachedDataFile = ".data.plugin.json"
)
Variables ¶
This section is empty.
Functions ¶
func ResultFilePath ¶
Types ¶
type CachedData ¶
type CachedData struct {
Items []cachedItem `json:"items"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
// contains filtered or unexported fields
}
CachedData is the cached data stored in the source plugin directory, which supports sharing cached data across different workflows.
func InitCacheData ¶
func InitCacheData() *CachedData
func OpenCacheData ¶
func OpenCacheData(reader io.Reader) (*CachedData, error)
func (*CachedData) ListItems ¶
func (d *CachedData) ListItems(group string) (result []string)
func (*CachedData) NeedReCache ¶
func (d *CachedData) NeedReCache() bool
func (*CachedData) SetItem ¶
func (d *CachedData) SetItem(group, cachedKey, itemVal string)
type CollectManifest ¶
type Request ¶
type Request struct {
Action string
WorkPath string
EntryId int64
ParentEntryId int64
EntryPath string
EntryURI string
Namespace string
CacheData *CachedData
Parameter map[string]any
ContextResults Results
ParentProperties map[string]string
}
func NewRequest ¶
func NewRequest() *Request
type Response ¶
func NewFailedResponse ¶
func NewResponse ¶
func NewResponse() *Response
func NewResponseWithResult ¶
Click to show internal directories.
Click to hide internal directories.