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) CheckServiceAlive(attr gxregistry.ServiceAttr, svcArray *gxfilter.ServiceArray) bool
- func (s *Filter) Close() error
- func (s *Filter) Filter(service gxregistry.ServiceAttr) (*gxfilter.ServiceArray, error)
- func (s *Filter) GetService(service gxregistry.ServiceAttr) ([]*gxregistry.Service, error)
- func (s *Filter) Options() gxfilter.Options
Constants ¶
View Source
const ( GxfilterDefaultKey = 0X201804201515 GxfilterServiceAttrKey = 0X201808162038 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filter ¶
func (*Filter) CheckServiceAlive ¶ added in v0.3.1
func (*Filter) GetService ¶
Click to show internal directories.
Click to hide internal directories.