Documentation ¶
Overview ¶
Package query defines the graph session interface general to all query languages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrParseMore = errors.New("query: more input required")
Functions ¶
func RegisterLanguage ¶
func RegisterLanguage(lang Language)
RegisterLanguage register a new query language.
Types ¶
type Language ¶
type Language struct { Name string Session func(graph.QuadStore) Session REPL func(graph.QuadStore) REPLSession HTTP func(graph.QuadStore) HTTP HTTPQuery func(ctx context.Context, qs graph.QuadStore, w ResponseWriter, r io.Reader) HTTPError func(w ResponseWriter, err error) }
Language is a description of query language.
func GetLanguage ¶
GetLanguage returns a query language description. It returns nil if language was not registered.
type REPLSession ¶
type ResponseWriter ¶
ResponseWriter is a subset of http.ResponseWriter
Click to show internal directories.
Click to hide internal directories.