Documentation
¶
Overview ¶
Package register wires a rotating bloomfilter into the gateway from its extra_config block, exposing it over the internal RPC service.
Index ¶
Constants ¶
View Source
const Namespace = "github_com/devopsfaith/bloomfilter"
Namespace for bloomfilter
Variables ¶
View Source
var (
ErrNoConfig = errors.New("no config for the bloomfilter")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
bf_rpc.Config
TokenKeys []string `json:"token_keys"`
Headers []string `json:"headers"`
}
Config defines the configuration to be added to the KrakenD gateway
type Rejecter ¶
type Rejecter struct {
BF bloomfilter.Bloomfilter
TokenKeys []string
Headers []string
}
func Register ¶
func Register( ctx context.Context, serviceName string, cfg config.ServiceConfig, logger logging.Logger, register func(n string, p int), ) (Rejecter, error)
Register creates rejecter wrapping a bloomfilter given a config
func (*Rejecter) RejectToken ¶
Click to show internal directories.
Click to hide internal directories.