Documentation
¶
Overview ¶
Package gxpool provides a service pool filter
Package gxpool provides a interface for service pool filter
Index ¶
- Constants
- func NewFilter(opts ...gxfilter.Option) (gxfilter.Filter, error)
- func WithTTL(t time.Duration) gxfilter.Option
- type Filter
- func (s *Filter) CheckTokenAlive(attr gxregistry.ServiceAttr, token gxfilter.ServiceToken) bool
- func (s *Filter) Close() error
- func (s *Filter) Filter(service gxregistry.ServiceAttr) (gxfilter.Balancer, gxfilter.ServiceToken, error)
- func (s *Filter) GetService(service gxregistry.ServiceAttr) ([]*gxregistry.Service, error)
- func (s *Filter) Options() gxfilter.Options
Constants ¶
View Source
const (
GxfilterDefaultKey = 0X201804201515
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.