Documentation ¶
Index ¶
- func BuildFileSystem(s *schema.SyntaxFlowRule) (fi.FileSystem, error)
- func CreateOrUpdateSyntaxFlow(hash string, i any) error
- func DeleteRuleByLibName(name string) error
- func DeleteRuleByRuleName(name string) error
- func DeleteRuleByTitle(name string) error
- func ExportDatabase() io.ReadCloser
- func GetAllRules() ([]*schema.SyntaxFlowRule, error)
- func GetLibrary(libname string) (*schema.SyntaxFlowRule, error)
- func GetRule(ruleName string) (*schema.SyntaxFlowRule, error)
- func GetRules(ruleNameGlob string) ([]*schema.SyntaxFlowRule, error)
- func ImportDatabase(reader io.Reader) error
- func ImportRuleWithoutValid(ruleName string, content string, buildin bool) error
- func ImportValidRule(system fi.FileSystem, ruleName string, content string) error
- func LoadFileSystem(s *schema.SyntaxFlowRule, system fi.FileSystem) error
- func RegisterValid(f func(rule *schema.SyntaxFlowRule) error)
- func YieldSyntaxFlowRules(db *gorm.DB, ctx context.Context) chan *schema.SyntaxFlowRule
- func YieldSyntaxFlowRulesWithoutLib(db *gorm.DB, ctx context.Context) chan *schema.SyntaxFlowRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildFileSystem ¶
func BuildFileSystem(s *schema.SyntaxFlowRule) (fi.FileSystem, error)
func DeleteRuleByLibName ¶
func DeleteRuleByRuleName ¶
func DeleteRuleByTitle ¶
func ExportDatabase ¶
func ExportDatabase() io.ReadCloser
func GetAllRules ¶
func GetAllRules() ([]*schema.SyntaxFlowRule, error)
func GetLibrary ¶
func GetLibrary(libname string) (*schema.SyntaxFlowRule, error)
func ImportDatabase ¶
func ImportRuleWithoutValid ¶
func ImportValidRule ¶
func ImportValidRule(system fi.FileSystem, ruleName string, content string) error
func LoadFileSystem ¶
func LoadFileSystem(s *schema.SyntaxFlowRule, system fi.FileSystem) error
func RegisterValid ¶
func RegisterValid(f func(rule *schema.SyntaxFlowRule) error)
func YieldSyntaxFlowRules ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.