package
0.12.1
Repository: https://github.com/airenas/api-doorman.git
Documentation: pkg.go.dev

# Functions

AudioLenQuota creates handler.
CleanHeader removes header with key names starting with 'starting' from request.
FillHeader creates handler for filling header values from tags.
FillKeyHeader creates handler for adding key hash value into "x-tts-save-tags".
FillOutHeader creates handler for filling header out values from tags starting with x-header-out:.
FillRequestIDHeader creates handler for adding requestID into header x-doorman-requestid".
GetInfo return info if handler has one.
IPAsKey creates handler.
JSONAsQuota creates handler.
JSONTTSAsQuota creates handler.
KeyExtract creates handler.
KeyValid creates handler.
KeyValidOrIP creates handler.
LogDB creates handler.
LogShitf appends spaces to strin.
LogStdout creates handler.
Proxy creates handler.
QuotaValidate creates handler.
QuotaValidate creates handler.
RequestAsQuota creates handler.
SkipFirstQuota creates handler.
StripPrefix creates handler.
TakeJSON creates handler.
TakeJSONTTS creates handler.
ToTextAndQuota creates handler.

# Constants

CtxContext context key for custom context object.

# Interfaces

AudioLenGetter get duration.
CountGetter get usage count from external system.
DBSaver logs to db.
IPSaver saves ip a=as key into DB.
KeyValidator validator.
QuotaValidator validator.
RateLimit validator.
TextGetter get duration.