Documentation ¶
Index ¶
- Variables
- type Button
- type Context
- type Error
- type GoodByeScene
- type LoadValue
- type Matcher
- type Payload
- type RegexMatcher
- type SaveValue
- type Scene
- type ScriptMatcher
- func (m *ScriptMatcher) GetRegexMatcher() (*RegexMatcher, error)
- func (m *ScriptMatcher) GetSelectsMatcher() (*SelectMatcher, error)
- func (m *ScriptMatcher) IsRegexMatcher() bool
- func (m *ScriptMatcher) IsSelectMatcher() bool
- func (m *ScriptMatcher) MustRegexMatcher() RegexMatcher
- func (m *ScriptMatcher) MustSelectsMatcher() SelectMatcher
- func (m *ScriptMatcher) SetName(name string)
- func (m *ScriptMatcher) UnmarshalJSON(bs []byte) error
- func (m *ScriptMatcher) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- func (m *ScriptMatcher) UnmarshalYAML(un func(interface{}) error) (err error)
- type SelectMatcher
- type Text
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorIsNotRegexMatcher = errors.New("this matcher is not regex, but you try get regex matcher") ErrorIsNotSelectsMatcher = errors.New("this matcher is not selects, but you try get selects matcher") ErrorEmptyNextSceneWithInfoScene = errors.New("if scene is info scene use only flag NextScene") ErrorEmptyNextScenesWithNoInfoScene = errors.New("if scene is not info scene use only flag NextScenes") ErrorTooManyFields = errors.New("too many fields were passed to the matcher") ErrorUnknownTypeOfValue = errors.New("the type of values is not supported. Supported type is:" + types.GetSupportTypes()) ErrorNotFoundValueInText = errors.New("settled value is not found in the text") ErrorNotSupportedMatherType = errors.New("the matcher name is not supported. Supported matchers is: " + strings.Join(matchers.GetSupportedNames(), ", ")) ErrorNotFoundToSceneInMather = errors.New("not found scene that was bee settled in the matcher. " + "The name of the scene must be specified in the nextScene field of the current scene") ErrorNotFoundToSceneInButton = errors.New("not found scene that was bee settled in the button. " + "The name of the scene must be specified in the nextScene field of the current scene") ErrorNotSupportedErrorType = errors.New("the base error name is not supported. Supported base errors is: " + strings.Join(errors2.GetSupportedNames(), ", ")) )
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct { Text string `yaml:"text" xml:"text" json:"text"` URL string `yaml:"url,omitempty" xml:"url,omitempty" json:"url,omitempty"` Payload Payload `yaml:"payload,omitempty" json:"payload,omitempty" xml:"payload,omitempty"` ToScene string `yaml:"toScene,omitempty" json:"to_scene,omitempty" xml:"toScene,omitempty"` }
type Error ¶
type Error struct { Base string `yaml:"base,omitempty" json:"base,omitempty" xml:"base,omitempty"` Name string `yaml:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` Text string `yaml:"text,omitempty" json:"text,omitempty" xml:"text,omitempty"` Scene string `yaml:"scene,omitempty" json:"scene,omitempty" xml:"scene,omitempty"` }
type GoodByeScene ¶
type LoadValue ¶
func (*LoadValue) UnmarshalJSON ¶
func (*LoadValue) UnmarshalXML ¶
func (*LoadValue) UnmarshalYAML ¶
type Matcher ¶
func (*Matcher) UnmarshalJSON ¶
func (*Matcher) UnmarshalXML ¶
func (*Matcher) UnmarshalYAML ¶
type RegexMatcher ¶
type Scene ¶
type Scene struct { IsEnd bool `yaml:"isEnd,omitempty" json:"is_end,omitempty" xml:"isEnd,omitempty"` IsInfoScene bool `yaml:"isInfoScene,omitempty" json:"is_info_scene,omitempty" xml:"isInfoScene,omitempty"` NextScene string `yaml:"nextScene,omitempty" json:"next_scene,omitempty" xml:"nextScene,omitempty"` Text Text `yaml:"text" json:"text" xml:"text"` Error Error `yaml:"error,omitempty" json:"error,omitempty" xml:"error,omitempty"` Context Context `yaml:"context" json:"context" xml:"context"` NextScenes []string `yaml:"nextScenes,omitempty" json:"next_scenes,omitempty" xml:"nextScenes,omitempty"` Matchers []Matcher `yaml:"matchers,omitempty" json:"matchers,omitempty" xml:"matchers,omitempty"` Buttons map[string]Button `yaml:"buttons,omitempty" json:"buttons,omitempty" xml:"buttons,omitempty"` }
type ScriptMatcher ¶
type ScriptMatcher struct {
// contains filtered or unexported fields
}
func (*ScriptMatcher) GetRegexMatcher ¶
func (m *ScriptMatcher) GetRegexMatcher() (*RegexMatcher, error)
func (*ScriptMatcher) GetSelectsMatcher ¶
func (m *ScriptMatcher) GetSelectsMatcher() (*SelectMatcher, error)
func (*ScriptMatcher) IsRegexMatcher ¶
func (m *ScriptMatcher) IsRegexMatcher() bool
func (*ScriptMatcher) IsSelectMatcher ¶
func (m *ScriptMatcher) IsSelectMatcher() bool
func (*ScriptMatcher) MustRegexMatcher ¶
func (m *ScriptMatcher) MustRegexMatcher() RegexMatcher
func (*ScriptMatcher) MustSelectsMatcher ¶
func (m *ScriptMatcher) MustSelectsMatcher() SelectMatcher
func (*ScriptMatcher) SetName ¶
func (m *ScriptMatcher) SetName(name string)
func (*ScriptMatcher) UnmarshalJSON ¶
func (m *ScriptMatcher) UnmarshalJSON(bs []byte) error
func (*ScriptMatcher) UnmarshalXML ¶
func (m *ScriptMatcher) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
func (*ScriptMatcher) UnmarshalYAML ¶
func (m *ScriptMatcher) UnmarshalYAML(un func(interface{}) error) (err error)
type SelectMatcher ¶
type Text ¶
type Value ¶
func (*Value) UnmarshalJSON ¶
func (*Value) UnmarshalXML ¶
func (*Value) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.