expr

package
v0.2.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

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 Script

type Script map[string]scene.Scene

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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