Documentation ¶
Index ¶
- func ParseFilter[T any](b Builder[T], filter *expr.Expr) (T, error)
- type BoolValue
- func (b BoolValue) IntoBool() (bool, bool)
- func (BoolValue) IntoDuration() (time.Duration, bool)
- func (BoolValue) IntoFloat() (float64, bool)
- func (BoolValue) IntoIdent() ([]string, bool)
- func (BoolValue) IntoInt() (int64, bool)
- func (BoolValue) IntoString() (string, bool)
- func (BoolValue) IntoTime() (time.Time, bool)
- type Builder
- type FloatValue
- func (FloatValue) IntoBool() (bool, bool)
- func (FloatValue) IntoDuration() (time.Duration, bool)
- func (f FloatValue) IntoFloat() (float64, bool)
- func (FloatValue) IntoIdent() ([]string, bool)
- func (FloatValue) IntoInt() (int64, bool)
- func (FloatValue) IntoString() (string, bool)
- func (FloatValue) IntoTime() (time.Time, bool)
- type IdentValue
- func (IdentValue) IntoBool() (bool, bool)
- func (IdentValue) IntoDuration() (time.Duration, bool)
- func (IdentValue) IntoFloat() (float64, bool)
- func (i IdentValue) IntoIdent() ([]string, bool)
- func (IdentValue) IntoInt() (int64, bool)
- func (IdentValue) IntoString() (string, bool)
- func (IdentValue) IntoTime() (time.Time, bool)
- type IntValue
- func (IntValue) IntoBool() (bool, bool)
- func (IntValue) IntoDuration() (time.Duration, bool)
- func (IntValue) IntoFloat() (float64, bool)
- func (IntValue) IntoIdent() ([]string, bool)
- func (i IntValue) IntoInt() (int64, bool)
- func (IntValue) IntoString() (string, bool)
- func (IntValue) IntoTime() (time.Time, bool)
- type NestedBuilder
- type StringValue
- func (StringValue) IntoBool() (bool, bool)
- func (s StringValue) IntoDuration() (time.Duration, bool)
- func (StringValue) IntoFloat() (float64, bool)
- func (StringValue) IntoIdent() ([]string, bool)
- func (StringValue) IntoInt() (int64, bool)
- func (s StringValue) IntoString() (string, bool)
- func (s StringValue) IntoTime() (time.Time, bool)
- type UnimplementedBuilder
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BoolValue ¶ added in v0.0.3
type BoolValue struct { Value bool // contains filtered or unexported fields }
func (BoolValue) IntoDuration ¶ added in v0.0.3
func (BoolValue) IntoString ¶ added in v0.0.3
type FloatValue ¶ added in v0.0.2
type FloatValue struct { Value float64 // contains filtered or unexported fields }
func (FloatValue) IntoDuration ¶ added in v0.0.3
func (FloatValue) IntoFloat ¶ added in v0.0.2
func (f FloatValue) IntoFloat() (float64, bool)
func (FloatValue) IntoString ¶ added in v0.0.2
type IdentValue ¶ added in v0.0.2
type IdentValue struct { Value []string // contains filtered or unexported fields }
func (IdentValue) IntoDuration ¶ added in v0.0.3
func (IdentValue) IntoIdent ¶ added in v0.0.2
func (i IdentValue) IntoIdent() ([]string, bool)
func (IdentValue) IntoString ¶ added in v0.0.2
type IntValue ¶ added in v0.0.2
type IntValue struct { Value int64 // contains filtered or unexported fields }
func (IntValue) IntoDuration ¶ added in v0.0.3
func (IntValue) IntoString ¶ added in v0.0.2
type NestedBuilder ¶ added in v0.0.3
type StringValue ¶ added in v0.0.2
type StringValue struct { Value string // contains filtered or unexported fields }
func (StringValue) IntoDuration ¶ added in v0.0.3
func (s StringValue) IntoDuration() (time.Duration, bool)
func (StringValue) IntoString ¶ added in v0.0.2
func (s StringValue) IntoString() (string, bool)
type UnimplementedBuilder ¶ added in v0.0.3
type UnimplementedBuilder[T any] struct{}
func (UnimplementedBuilder[T]) Function ¶ added in v0.0.3
func (UnimplementedBuilder[T]) Function(op string, target T, args ...T) (T, error)
func (UnimplementedBuilder[T]) Standalone ¶ added in v0.0.3
func (UnimplementedBuilder[T]) Standalone(value Value) (T, error)
Click to show internal directories.
Click to hide internal directories.