Documentation ¶
Overview ¶
Package rulestat contains the filtering rule statistics collector and API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP is the filtering rule statistics collector that uploads the statistics to the given URL when it's refreshed.
TODO(a.garipov): Add tests.
func NewHTTP ¶
func NewHTTP(c *HTTPConfig) (s *HTTP)
NewHTTP returns a new statistics collector with HTTP upload.
type HTTPConfig ¶
type HTTPConfig struct { // Logger is used for logging the operation of the statistics collector. Logger *slog.Logger // ErrColl is used to collect errors during refreshes. ErrColl errcoll.Interface // URL is the URL to which the statistics is uploaded. URL *url.URL }
HTTPConfig is the configuration structure for the filtering rule statistics collector that uploads the statistics to a URL. All fields must not be nil.
Click to show internal directories.
Click to hide internal directories.