Documentation ¶
Index ¶
- Constants
- func GetHash(value []byte, base uint) int
- type BfeTimeFetcher
- type BinaryCond
- type BypassMatcher
- type CIPFetcher
- type ClientAuthMatcher
- type ClientCANameFetcher
- type Condition
- type ContainMatcher
- type ContextValueFetcher
- type CookieKeyInFetcher
- type CookieValueFetcher
- type DefaultTrueCond
- type ExactMatcher
- type Fetcher
- type HasTagMatcher
- type HashValueMatcher
- type HeaderKeyInFetcher
- type HeaderValueFetcher
- type HostFetcher
- type HostMatcher
- type HostTagFetcher
- type IPMatcher
- type InMatcher
- type IpInMatcher
- type Matcher
- type MethodFetcher
- type PathElementPrefixMatcher
- type PathFetcher
- type PeriodicTimeMatcher
- type PortFetcher
- type PrefixInMatcher
- type PrimitiveCond
- type ProtoFetcher
- type QueryExistMatcher
- type QueryKeyInFetcher
- type QueryKeyPrefixInFetcher
- type QueryValueFetcher
- type RegMatcher
- type ResCodeFetcher
- type ResHeaderKeyInFetcher
- type ResHeaderValueFetcher
- type SIPFetcher
- type SecureProtoMatcher
- type SniFetcher
- type SuffixInMatcher
- type TagFetcher
- type TimeMatcher
- type TrustedCIpMatcher
- type UAFetcher
- type UnaryCond
- type UrlFetcher
- type VIPFetcher
Constants ¶
View Source
const (
HashMatcherBucketSize = 10000 // default hash bucket size for hash value matcher
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BfeTimeFetcher ¶ added in v1.2.0
type BfeTimeFetcher struct{}
type BinaryCond ¶
type BinaryCond struct {
// contains filtered or unexported fields
}
BinaryCond is binary condition for lc&&rc , lc||rc
type BypassMatcher ¶
type BypassMatcher struct{}
func (*BypassMatcher) Match ¶
func (b *BypassMatcher) Match(v interface{}) bool
type ClientAuthMatcher ¶
type ClientAuthMatcher struct{}
type ClientCANameFetcher ¶
type ClientCANameFetcher struct{}
ClientCANameFetcher fetches client CA name
type ContainMatcher ¶
type ContainMatcher struct {
// contains filtered or unexported fields
}
func NewContainMatcher ¶
func NewContainMatcher(patterns string, foldCase bool) *ContainMatcher
func (*ContainMatcher) Match ¶
func (cm *ContainMatcher) Match(v interface{}) bool
type ContextValueFetcher ¶ added in v1.0.0
type ContextValueFetcher struct {
// contains filtered or unexported fields
}
type CookieKeyInFetcher ¶
type CookieKeyInFetcher struct {
// contains filtered or unexported fields
}
type CookieValueFetcher ¶
type CookieValueFetcher struct {
// contains filtered or unexported fields
}
type ExactMatcher ¶
type ExactMatcher struct {
// contains filtered or unexported fields
}
func NewExactMatcher ¶
func NewExactMatcher(pattern string, foldCase bool) *ExactMatcher
func (*ExactMatcher) Match ¶
func (em *ExactMatcher) Match(v interface{}) bool
type HasTagMatcher ¶
type HasTagMatcher struct {
// contains filtered or unexported fields
}
func (*HasTagMatcher) Match ¶
func (tm *HasTagMatcher) Match(v interface{}) bool
type HashValueMatcher ¶
type HashValueMatcher struct {
// contains filtered or unexported fields
}
func NewHashMatcher ¶
func NewHashMatcher(patterns string, insensitive bool) (*HashValueMatcher, error)
func (*HashValueMatcher) Match ¶
func (matcher *HashValueMatcher) Match(v interface{}) bool
type HeaderKeyInFetcher ¶
type HeaderKeyInFetcher struct {
// contains filtered or unexported fields
}
type HeaderValueFetcher ¶
type HeaderValueFetcher struct {
// contains filtered or unexported fields
}
type HostFetcher ¶
type HostFetcher struct{}
type HostMatcher ¶
type HostMatcher struct {
// contains filtered or unexported fields
}
func NewHostMatcher ¶
func NewHostMatcher(patterns string) (*HostMatcher, error)
func (*HostMatcher) Match ¶
func (hm *HostMatcher) Match(v interface{}) bool
type HostTagFetcher ¶
type HostTagFetcher struct{}
type InMatcher ¶
type InMatcher struct {
// contains filtered or unexported fields
}
func NewInMatcher ¶
type IpInMatcher ¶
type IpInMatcher struct {
// contains filtered or unexported fields
}
func NewIpInMatcher ¶
func NewIpInMatcher(patterns string) (*IpInMatcher, error)
func (*IpInMatcher) Match ¶
func (m *IpInMatcher) Match(v interface{}) bool
type MethodFetcher ¶
type MethodFetcher struct{}
type PathElementPrefixMatcher ¶ added in v1.0.0
type PathElementPrefixMatcher struct {
// contains filtered or unexported fields
}
func NewPathElementPrefixMatcher ¶ added in v1.0.0
func NewPathElementPrefixMatcher(patterns string, foldCase bool) *PathElementPrefixMatcher
func (*PathElementPrefixMatcher) Match ¶ added in v1.0.0
func (p *PathElementPrefixMatcher) Match(v interface{}) bool
type PathFetcher ¶
type PathFetcher struct{}
type PeriodicTimeMatcher ¶ added in v1.2.0
type PeriodicTimeMatcher struct {
// contains filtered or unexported fields
}
PeriodicTimeMatcher is periodic time range matcher
func NewPeriodicTimeMatcher ¶ added in v1.2.0
func NewPeriodicTimeMatcher(startTimeStr, endTimeStr, periodStr string) (*PeriodicTimeMatcher, error)
NewPeriodicTimeMatcher follows time string format: hhmmssZ, example 150405H, Z-> timezone defined in bfe_util.TimeZoneMap
func (*PeriodicTimeMatcher) Match ¶ added in v1.2.0
func (t *PeriodicTimeMatcher) Match(v interface{}) bool
type PortFetcher ¶
type PortFetcher struct{}
type PrefixInMatcher ¶
type PrefixInMatcher struct {
// contains filtered or unexported fields
}
func NewPrefixInMatcher ¶
func NewPrefixInMatcher(patterns string, foldCase bool) *PrefixInMatcher
func (*PrefixInMatcher) Match ¶
func (p *PrefixInMatcher) Match(v interface{}) bool
type PrimitiveCond ¶
type PrimitiveCond struct {
// contains filtered or unexported fields
}
func (*PrimitiveCond) String ¶
func (p *PrimitiveCond) String() string
type ProtoFetcher ¶
type ProtoFetcher struct{}
type QueryExistMatcher ¶
type QueryExistMatcher struct{}
type QueryKeyInFetcher ¶
type QueryKeyInFetcher struct {
// contains filtered or unexported fields
}
type QueryKeyPrefixInFetcher ¶
type QueryKeyPrefixInFetcher struct {
// contains filtered or unexported fields
}
type QueryValueFetcher ¶
type QueryValueFetcher struct {
// contains filtered or unexported fields
}
type RegMatcher ¶
type RegMatcher struct {
// contains filtered or unexported fields
}
func NewRegMatcher ¶
func NewRegMatcher(regex *regexp.Regexp) *RegMatcher
func (*RegMatcher) Match ¶
func (p *RegMatcher) Match(v interface{}) bool
type ResCodeFetcher ¶
type ResCodeFetcher struct{}
type ResHeaderKeyInFetcher ¶
type ResHeaderKeyInFetcher struct {
// contains filtered or unexported fields
}
type ResHeaderValueFetcher ¶
type ResHeaderValueFetcher struct {
// contains filtered or unexported fields
}
type SecureProtoMatcher ¶
type SecureProtoMatcher struct{}
type SuffixInMatcher ¶
type SuffixInMatcher struct {
// contains filtered or unexported fields
}
func NewSuffixInMatcher ¶
func NewSuffixInMatcher(patterns string, foldCase bool) *SuffixInMatcher
func (*SuffixInMatcher) Match ¶
func (p *SuffixInMatcher) Match(v interface{}) bool
type TagFetcher ¶
type TagFetcher struct {
// contains filtered or unexported fields
}
type TimeMatcher ¶ added in v1.2.0
type TimeMatcher struct {
// contains filtered or unexported fields
}
TimeMatcher is time range matcher
func NewTimeMatcher ¶ added in v1.2.0
func NewTimeMatcher(startTimeStr string, endTimeStr string) (*TimeMatcher, error)
func (*TimeMatcher) Match ¶ added in v1.2.0
func (t *TimeMatcher) Match(v interface{}) bool
type TrustedCIpMatcher ¶
type TrustedCIpMatcher struct{}
type UnaryCond ¶
type UnaryCond struct {
// contains filtered or unexported fields
}
UnaryCond is unary condition for !cond
type UrlFetcher ¶
type UrlFetcher struct{}
Click to show internal directories.
Click to hide internal directories.