extension

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0, Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 Metadata

type Metadata struct {
	CreationTime time.Time `json:",omitempty"`
	URL          string    `json:",omitempty"`
	Version      string    `json:",omitempty"`
}

type NamedArg

type NamedArg struct {
	Position int
	Name     string
}

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 NewWhenNotPredicate(name string) *Predicate

func NewWhenNotPresent

func NewWhenNotPresent() *Predicate

func NewWhenPresent

func NewWhenPresent() *Predicate

type PredicateConfig

type PredicateConfig struct {
	Parent string
	Name   string   `yaml:"Name"`
	Group  int      `yaml:"Group"`
	Ensure bool     `yaml:"Ensure"`
	Args   []string `yaml:"Args"`
}

type PredicateHandlerFactory

type PredicateHandlerFactory struct{}

func (*PredicateHandlerFactory) New

type PredicateRegistry

type PredicateRegistry struct {
	sync.Mutex
	// contains filtered or unexported fields
}

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

type Registry

type Registry struct {
	sync.Mutex
	Types      *xreflect.Types
	Codecs     *codec.Registry
	Predicates *PredicateRegistry
	Docs       *docs.Registry
}
var Config *Registry

func NewRegistry

func NewRegistry() *Registry

func (*Registry) AddTypes

func (r *Registry) AddTypes(pkgName string, types []reflect.Type)

func (*Registry) LookupCodec

func (r *Registry) LookupCodec(name string) (*codec.Codec, error)

func (*Registry) MergeFrom

func (r *Registry) MergeFrom(toOverride *Registry)

func (*Registry) RegisterCodec

func (r *Registry) RegisterCodec(name string, codecInstance codec.Instance, at time.Time)

func (*Registry) RegisterCodecFactory

func (r *Registry) RegisterCodecFactory(name string, factory codec.Factory, at time.Time)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL