Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalPluginRegistry ¶
func GlobalPluginRegistry() *staticplug.Registry
GlobalPluginRegistry returns a pointer to a global plugin registry.
func MustRegisterPlugin ¶
func MustRegisterPlugin(p staticplug.Plugin)
Types ¶
type DocumentFacter ¶
type DocumentFacter interface { staticplug.Plugin // DocumentFacts is invoked after a document has been parsed into // structured text. The return value can be nil to report that no suitable // facts were found. DocumentFacts(context.Context, DocumentFacterOptions) (*Facts, error) }
type DocumentFacterOptions ¶
type Facts ¶
type Facts struct { Reporter *string `json:"reporter"` Title *string `json:"title,omitempty"` Created *time.Time `json:"created,omitempty"` DocumentType *string `json:"document_type,omitempty"` Correspondent *string `json:"correspondent,omitempty"` StoragePath *string `json:"storage_path,omitempty"` SetTags []string `json:"set_tags,omitempty"` UnsetTags []string `json:"unset_tags,omitempty"` }
Click to show internal directories.
Click to hide internal directories.