knowledgebase

package
v0.7.0-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2023 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseInfo

type BaseInfo struct {
	UUID         string
	ID           string
	ShortName    string
	Description  string
	CreatedDate  time.Time
	ModifiedDate time.Time
}

type Group

type Group struct {
	BaseInfo
	Groups     map[string]Group
	Parameters []string
	Rules      []string
}

type KnowledgeBase

type KnowledgeBase struct {
	Meta       Meta
	Groups     map[string]Group
	Parameters map[string]Parameter
	Patterns   map[string]Pattern
	Rules      map[string]Rule
}

type Meta

type Meta struct {
	BaseInfo
}

type Parameter

type Parameter struct {
	BaseInfo
	Type         ParameterType
	DefaultValue string
}

type ParameterPattern

type ParameterPattern struct {
	ShortName string
	Type      ParameterType
}

type ParameterRule

type ParameterRule struct {
	ShortName     string
	ParameterUUID string
}

type ParameterType

type ParameterType int
const (
	String  ParameterType = 0
	Double  ParameterType = 1
	Boolean ParameterType = 2
)

type Pattern

type Pattern struct {
	BaseInfo
	Type             PatternType
	ScriptLanguage   ScriptLanguageType
	Script           string
	InputParameters  []ParameterPattern
	OutputParameters []ParameterPattern
}

type PatternType

type PatternType int
const (
	Program PatternType = 0
)

type Rule

type Rule struct {
	BaseInfo
	PatternUUID      string
	InputParameters  []ParameterRule
	OutputParameters []ParameterRule
}

type ScriptLanguageType

type ScriptLanguageType int
const (
	JS  ScriptLanguageType = 0
	Lua ScriptLanguageType = 1
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL