Files
opencloud/services/search/pkg/query/query.go
2024-06-24 16:23:55 +02:00

20 lines
543 B
Go

// Package query provides functions to work with the different search query flavours.
package query
import "github.com/owncloud/ocis/v2/ocis-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)
}