Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node interface { // Consume takes the contents of the translation stack and returns a Node // representing the root node of an AST referring to nodes within the stack, // and any remaining nodes. Consume([]Node) (Node, []Node) }
A Node is an element of the ESearch translation stack.
type Translation ¶
type TranslationStack ¶
type TranslationStack []Node
func (*TranslationStack) AST ¶
func (ts *TranslationStack) AST() (Node, error)
AST returns the root node of an abstract syntax tree of the query. Nodes in the TranslationStack are altered by this method.
func (*TranslationStack) UnmarshalXML ¶
func (ts *TranslationStack) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error
Click to show internal directories.
Click to hide internal directories.