mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 09:38:26 -05:00
20 lines
544 B
Go
20 lines
544 B
Go
// Package query provides functions to work with the different search query flavours.
|
|
package query
|
|
|
|
import "github.com/opencloud-eu/opencloud/pkg/ast"
|
|
|
|
// Builder is the interface that wraps the basic Build method.
|
|
type Builder interface {
|
|
Build(qs string) (*ast.Ast, error)
|
|
}
|
|
|
|
// Compiler is the interface that wraps the basic Compile method.
|
|
type Compiler[T any] interface {
|
|
Compile(ast *ast.Ast) (T, error)
|
|
}
|
|
|
|
// Creator is the interface that wraps the basic Create method.
|
|
type Creator[T any] interface {
|
|
Create(qs string) (T, error)
|
|
}
|