package
4.4.4
Repository: https://github.com/b2wdigital/restql-golang.git
Documentation: pkg.go.dev

# Functions

AllowInvalidUTF8 creates an Option to allow invalid UTF-8 bytes.
Debug creates an Option to set the debug flag to b.
Entrypoint creates an Option to set the rule name to use as entrypoint.
GlobalStore creates an Option to set a key to a certain value in the globalStore.
InitState creates an Option to set a key to a certain value in the global "state" store.
MaxExpressions creates an Option to stop parsing after the provided number of expressions have been parsed, if the value is 0 then the parser will parse for as many steps as needed (possibly an infinite number).
Memoize creates an Option to set the memoize flag to b.
New constructs an AST generator.
Parse parses the data from b using filename as information in the error messages.
ParseFile parses the file identified by filename.
ParseReader parses the data from r using filename as information in the error messages.
Recover creates an Option to set the recover flag to b.
Statistics adds a user provided Stats struct to the parser to allow the user to process the results after the parsing has finished.

# Constants

restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.
restQL language keywords.

# Structs

Block is the syntax node representing a statement.
Chained is the syntax node representing a chain value.
Filter is the syntax node representing entries in the `only` clause.
Generator encapsulate the parsing implementation used to transform a query string into an AST.
HeaderItem is the syntax node representing an entry of the `headers` clause.
HeaderValue is the syntax node representing a `headers` clause entry value.
KeyValue is the syntax node representing parameters in the `with` clause.
Match is the syntax node representing the `matches` function.
ObjectEntry is the syntax node representing an object value.
ParameterBody is the syntax node representing the dynamic body feature of the `with` clause.
Parameters is the syntax node representing the `with` clause.
Primitive is the syntax node representing the basic restQL value types.
Qualifier is the syntax node representing statement clauses: `with`, `only`, `hidden`, `headers`, `timeout` `max-age`, `s-max-age` and `ignore-errors`.
Query is the root of the restQL AST.
Stats stores some statistics, gathered during parsing.
Use is the syntax node representing the `use` clause.
UseValue is the syntax node representing the `use` clause possible values.
Value is the syntax node representing possible types used in the `with` clause parameters.

# Interfaces

Cloner is implemented by any value that has a Clone method, which returns a copy of the value.

# Type aliases

MaxAgeValue is the syntax node representing the value in the `max-age` clause.
Option is a function that can set an option on the parser.
SMaxAgeValue is the syntax node representing the value in the `s-max-age` clause.
TimeoutValue is the syntax node representing the value in the `timeout` clause.