package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev

# Packages

Package common contains all query handlers for AcraCensor: blacklist handler, which allows everything and forbids specific query/pattern/table; whitelist handler, which allows query/pattern/table and restricts/forbids everything else; ignore handler, which allows to ignore any query; and querycapture module that logs every unique query to the QueryCapture log.

# Functions

NewAcraCensor creates new censor object.

# Constants

Query handlers' names.
Query handlers' names.
Query handlers' names.
Query handlers' names.
Query handlers' names.
Query handlers' names.
ServiceName to use in logs.

# Variables

ErrUnsupportedConfigVersion acra-censor's config has version less than MinimalCensorConfigVersion.
MinimalCensorConfigVersion min version of config that support acra-censor.

# Structs

AcraCensor describes censor data: query handler, logger and reaction on parsing errors.
Config shows handlers configuration: queries, tables, patterns.

# Interfaces

AcraCensorInterface describes main AcraCensor methods: adding and removing query handlers and processing query.
QueryHandlerInterface describes what actions are available for queries.