Versions in this module Expand all Collapse all v1 v1.9.8 Jun 28, 2023 Changes in this version + const MaxAddresses + const MaxBytes + var ErrAddressLimit = errors.New("address limit exceeded") + var ErrFilterNotInitialized = errors.New("filter not initialized") + var ErrInvalidCommand = errors.New("invalid command") + var ErrInvalidFilterParam = errors.New("invalid bloom filter params") + type AddAddresses struct + type Command struct + AddAddresses *AddAddresses + NewBloom *NewBloom + NewSet *NewSet + func (c *Command) String() string + type Filter interface + Check func(addr []byte) bool + type FilterParam struct + func NewFilterParam() *FilterParam + func (f *FilterParam) Add(bl ...[]byte) error + func (f *FilterParam) Check(addr []byte) bool + func (f *FilterParam) Filter() bloom.Filter + func (f *FilterParam) Len() int + func (f *FilterParam) NewSet() + func (f *FilterParam) SetFilter(filter bloom.Filter) bloom.Filter + type Filterer interface + Filter func(connections []Filter) ([]bool, interface{}) + type NewBloom struct + CollisionProb json.Float64 + MaxElements json.Uint64 + func (c *NewBloom) IsParamsValid() bool + type NewSet struct + type Server struct + func New(log logging.Logger) *Server + func (s *Server) Publish(parser Filterer) + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) v1.9.8-rc.9 Jun 28, 2023