Documentation ¶
Overview ¶
Package search implements the DLNA query language, defined in the ContentDirectory spec.
Index ¶
Constants ¶
View Source
const ( And = LogicOp("and") Or = LogicOp("or") Equal = BinaryOp("=") NotEqual = BinaryOp("!=") LessThan = BinaryOp("<") LessThanEqual = BinaryOp("<=") GreaterThan = BinaryOp(">") GreaterThanEqual = BinaryOp(">=") Contains = BinaryOp("contains") DoesNotContain = BinaryOp("doesNotContain") // DerivedFrom is useful for restricting a query to only certain media kinds. // For example, `itemClass derivedfrom "object.item.audioItem"`. DerivedFrom = BinaryOp("derivedfrom") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinaryExpr ¶
BinaryExpr matches Directory Objects where Property matches the relation to Operand by Op. For example, `artist = "The Birthday Massacre"`.
func (BinaryExpr) CanonicalExpr ¶
func (b BinaryExpr) CanonicalExpr() Expr
func (BinaryExpr) String ¶
func (b BinaryExpr) String() string
type BinaryOp ¶
type BinaryOp string
BinaryOp is a binary operation on a property, such as `=` or `contains`.
type Everything ¶
type Everything struct{}
Everything matches everything, a.k.a. "*".
func (Everything) Criteria ¶
func (e Everything) Criteria() Criteria
func (Everything) String ¶
func (e Everything) String() string
type ExistsExpr ¶
ExistsExpr matches Directory Objects that either do or don't have a given property.
func (ExistsExpr) CanonicalExpr ¶
func (e ExistsExpr) CanonicalExpr() Expr
func (ExistsExpr) String ¶
func (e ExistsExpr) String() string
type LogicExpr ¶
LogicExpr is the conjunction or disjunction of one or more subquery Exprs.
func (LogicExpr) CanonicalExpr ¶
Click to show internal directories.
Click to hide internal directories.