Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorStartSceneNotFound = errors.New("start scene with it name not found") ErrorGoodbyeSceneNotFound = errors.New("goodbye scene with it name not found") ErrorNameAlreadyOccupied = errors.New("the name of matcher is already occupied by the standard matcher") ErrorNameSceneNotFound = errors.New("the name of scene not found") ErrorUnknown = errors.New("got unknown error. Please send the error information " + "and your configuration file to the mail: vetan22@mail.ru") ErrorNotFoundSLoadedContext = errors.New("not found value that you try load from context in higher-level scenes") ErrorNotEqualValueAndContextType = errors.New("") )
Functions ¶
This section is empty.
Types ¶
type ScriptInfo ¶
type ScriptInfo struct { StartScene string `yaml:"startScene" json:"start_scene" xml:"startScene"` Name string `yaml:"name" json:"name" xml:"name"` GoodByeCommand string `yaml:"goodByeCommand" json:"good_bye_command" xml:"goodByeCommand"` GoodByeScene string `yaml:"goodByeScene" json:"good_bye_scene" xml:"goodByeScene"` UserMatchers map[string]scene.ScriptMatcher `yaml:"matchers,omitempty" json:"matchers,omitempty" xml:"matchers,omitempty"` //nolint:lll // Go not support multiline tags Script Script `yaml:"script" json:"script" xml:"script"` }
func LoadScriptInfo ¶
func LoadScriptInfo(path string) (*ScriptInfo, error)
func (*ScriptInfo) IsValid ¶
func (si *ScriptInfo) IsValid() (is bool, err error)
Click to show internal directories.
Click to hide internal directories.