Documentation ¶
Index ¶
- Constants
- func InitRegistry()
- type Metadata
- type NamedArg
- type Predicate
- func NewBetweenPredicate() *Predicate
- func NewContainsPredicate() *Predicate
- func NewDurationPredicate() *Predicate
- func NewEqualPredicate() *Predicate
- func NewExistsCriteriaPredicate() *Predicate
- func NewExistsPredicate() *Predicate
- func NewGreaterOrEqualPredicate() *Predicate
- func NewGreaterThanPredicate() *Predicate
- func NewInCriteriaPredicate() *Predicate
- func NewInPredicate() *Predicate
- func NewIsNotNullPredicate() *Predicate
- func NewIsNullPredicate() *Predicate
- func NewLessOrEqualPredicate() *Predicate
- func NewLessThanPredicate() *Predicate
- func NewLikePredicate() *Predicate
- func NewMultiInPredicate() *Predicate
- func NewMultiNotInPredicate() *Predicate
- func NewNotContainsPredicate() *Predicate
- func NewNotEqualPredicate() *Predicate
- func NewNotExistsCriteriaPredicate() *Predicate
- func NewNotExistsPredicate() *Predicate
- func NewNotInCriteriaPredicate() *Predicate
- func NewNotInPredicate() *Predicate
- func NewNotLikePredicate() *Predicate
- func NewPredicateHandler() *Predicate
- func NewWhenNotPredicate(name string) *Predicate
- func NewWhenNotPresent() *Predicate
- func NewWhenPresent() *Predicate
- type PredicateConfig
- type PredicateHandlerFactory
- type PredicateRegistry
- type Registry
- func (r *Registry) AddTypes(pkgName string, types []reflect.Type)
- func (r *Registry) LookupCodec(name string) (*codec.Codec, error)
- func (r *Registry) MergeFrom(toOverride *Registry)
- func (r *Registry) RegisterCodec(name string, codecInstance codec.Instance, at time.Time)
- func (r *Registry) RegisterCodecFactory(name string, factory codec.Factory, at time.Time)
Constants ¶
View Source
const ( TypeJwtTokenInfo = "JwtTokenInfo" TypeJwtClaims = "JwtClaims" CodecKeyJwtClaim = "JwtClaim" )
View Source
const ( PredicateEqual = "equal" PredicateNotEqual = "not_equal" PredicateIn = "in" PredicateMultiIn = "multi_in" PredicateNotIn = "not_in" PredicateMultiNotIn = "multi_not_in" PredicateLessOrEqual = "less_or_equal" PredicateLessThan = "less_than" PredicateGreaterOrEqual = "greater_or_equal" PredicateGreaterThan = "greater_than" PredicateLike = "like" PredicateNotLike = "not_like" PredicateHandler = "handler" PredicateContains = "contains" PredicateNotContains = "not_contains" PredicateIsNotNull = "is_not_null" PredicateIsNull = "is_null" PredicateExists = "exists" PredicateNotExists = "not_exists" PredicateCriteriaExists = "exists_criteria" PredicateCriteriaNotExists = "not_exists_criteria" PredicateCriteriaIn = "in_criteria" PredicateCriteriaNotIn = "not_in_criteria" PredicateBetween = "between" PredicateDuration = "duration" PredicateWhenPresent = "when_present" PredicateWhenNotPresent = "when_not_present" )
View Source
const PackageName = "PackageName"
View Source
const PluginConfig = "Config"
View Source
const TypesName = "Types"
Variables ¶
This section is empty.
Functions ¶
func InitRegistry ¶
func InitRegistry()
Types ¶
type Predicate ¶
type Predicate struct { Template *predicate.Template Handler *PredicateHandlerFactory }
func NewBetweenPredicate ¶
func NewBetweenPredicate() *Predicate
func NewContainsPredicate ¶
func NewContainsPredicate() *Predicate
func NewDurationPredicate ¶
func NewDurationPredicate() *Predicate
func NewEqualPredicate ¶
func NewEqualPredicate() *Predicate
func NewExistsCriteriaPredicate ¶
func NewExistsCriteriaPredicate() *Predicate
func NewExistsPredicate ¶
func NewExistsPredicate() *Predicate
func NewGreaterOrEqualPredicate ¶
func NewGreaterOrEqualPredicate() *Predicate
func NewGreaterThanPredicate ¶
func NewGreaterThanPredicate() *Predicate
func NewInCriteriaPredicate ¶
func NewInCriteriaPredicate() *Predicate
func NewInPredicate ¶
func NewInPredicate() *Predicate
func NewIsNotNullPredicate ¶
func NewIsNotNullPredicate() *Predicate
func NewIsNullPredicate ¶
func NewIsNullPredicate() *Predicate
func NewLessOrEqualPredicate ¶
func NewLessOrEqualPredicate() *Predicate
func NewLessThanPredicate ¶
func NewLessThanPredicate() *Predicate
func NewLikePredicate ¶
func NewLikePredicate() *Predicate
func NewMultiInPredicate ¶
func NewMultiInPredicate() *Predicate
func NewMultiNotInPredicate ¶
func NewMultiNotInPredicate() *Predicate
func NewNotContainsPredicate ¶
func NewNotContainsPredicate() *Predicate
func NewNotEqualPredicate ¶
func NewNotEqualPredicate() *Predicate
func NewNotExistsCriteriaPredicate ¶
func NewNotExistsCriteriaPredicate() *Predicate
func NewNotExistsPredicate ¶
func NewNotExistsPredicate() *Predicate
func NewNotInCriteriaPredicate ¶
func NewNotInCriteriaPredicate() *Predicate
func NewNotInPredicate ¶
func NewNotInPredicate() *Predicate
func NewNotLikePredicate ¶
func NewNotLikePredicate() *Predicate
func NewPredicateHandler ¶
func NewPredicateHandler() *Predicate
func NewWhenNotPredicate ¶
func NewWhenNotPresent ¶
func NewWhenNotPresent() *Predicate
func NewWhenPresent ¶
func NewWhenPresent() *Predicate
type PredicateConfig ¶
type PredicateHandlerFactory ¶
type PredicateHandlerFactory struct{}
func (*PredicateHandlerFactory) New ¶
func (p *PredicateHandlerFactory) New(lookupType xreflect.LookupType, args ...string) (codec.PredicateHandler, error)
type PredicateRegistry ¶
func NewPredicates ¶
func NewPredicates() *PredicateRegistry
func (*PredicateRegistry) Add ¶
func (r *PredicateRegistry) Add(template *predicate.Template)
func (*PredicateRegistry) Lookup ¶
func (r *PredicateRegistry) Lookup(name string) (*Predicate, error)
func (*PredicateRegistry) Scope ¶
func (r *PredicateRegistry) Scope() *PredicateRegistry
Click to show internal directories.
Click to hide internal directories.