knowledgebase

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Double  = "Double"
	String  = "String"
	Boolean = "Boolean"
)
View Source
const (
	Program    = "Program"
	Constraint = "Constraint"

	JS  = "JS"
	Lua = "Lua"
)

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
}

func (BaseInfo) Extract

func (bi BaseInfo) Extract() entKb.BaseInfo

func (*BaseInfo) Fill

func (bi *BaseInfo) Fill(ent entKb.BaseInfo)

type Group

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

func (Group) Extract

func (gr Group) Extract() entKb.Group

func (*Group) Fill

func (gr *Group) Fill(ent entKb.Group)

type Meta

type Meta struct {
	BaseInfo
}

func (Meta) Extract

func (m Meta) Extract() entKb.Meta

func (*Meta) Fill

func (m *Meta) Fill(ent entKb.Meta)

type Parameter

type Parameter struct {
	BaseInfo
	Type         string
	DefaultValue string
}

func (Parameter) Extract

func (p Parameter) Extract() (entKb.Parameter, error)

func (*Parameter) Fill

func (p *Parameter) Fill(ent entKb.Parameter) error

type ParameterPattern

type ParameterPattern struct {
	ShortName string
	Type      string
}

func (ParameterPattern) Extract

func (pp ParameterPattern) Extract() (entKb.ParameterPattern, error)

func (*ParameterPattern) Fill

type ParameterRule

type ParameterRule struct {
	ShortName     string
	ParameterUUID string
}

func (ParameterRule) Extract

func (pr ParameterRule) Extract() entKb.ParameterRule

func (*ParameterRule) Fill

func (pr *ParameterRule) Fill(base entKb.ParameterRule)

type Pattern

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

func (Pattern) Extract

func (p Pattern) Extract() (entKb.Pattern, error)

func (*Pattern) Fill

func (p *Pattern) Fill(ent entKb.Pattern) error

type Rule

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

func (Rule) Extract

func (r Rule) Extract() entKb.Rule

func (*Rule) Fill

func (r *Rule) Fill(base entKb.Rule)

Jump to

Keyboard shortcuts

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