Debian Codegraph @

/

debian golang-ptutil 0.0~git20240710.6c4d8ed-2debian golang-ptutil-dev gomod gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/ptutil debiangoinimakefilemarkdownshellyaml 19 files · 121 symbols
View dependency graph

Depends on

README (full)

PTutil

A collection of utilities for Pluggable Transports.

SafeLog

A safer logging wrapper around the standard logging package. It removes private parts from the logs, like IP addresses.

log.SetOutput(&safelog.LogScrubber{Output: os.Stderr})

SafeProm

Implements some additional prometheus metrics that we need for privacy preserving counts of users and proxies.

usersTotal = safeprom.NewRoundedCounterVec(
    prometheus.CounterOpts{
        Name:      "rounded_users_total",
        Help:      "The number of users, rounded up to a multiple of 8",
    },
    []string{"status"},
)
usersTotal.WithLabelValues("active").Inc()
dir debian/
dir safelog/
dir safeprom/
file .gitlab-ci.yml
file LICENSE
file README.md
file go.mod
file go.sum