Documentation
¶
Index ¶
Constants ¶
View Source
const ( ClientAPIKeyContextKey contextKey = "client_api_key" InstanceIDContextKey contextKey = "instance_id" )
Variables ¶
This section is empty.
Functions ¶
func ClientAPIKeyMiddleware ¶
ClientAPIKeyMiddleware validates client API keys and extracts instance information
func GetClientAPIKeyFromContext ¶
func GetClientAPIKeyFromContext(ctx context.Context) *models.ClientAPIKey
GetClientAPIKeyFromContext retrieves the client API key from the request context
func GetInstanceIDFromContext ¶
GetInstanceIDFromContext retrieves the instance ID from the request context
Types ¶
type BufferPool ¶
type BufferPool struct {
// contains filtered or unexported fields
}
BufferPool provides a thread-safe pool of byte slices for the reverse proxy
func NewBufferPool ¶
func NewBufferPool() *BufferPool
NewBufferPool creates a new buffer pool with 32KB buffers
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler manages reverse proxy requests to qBittorrent instances
func NewHandler ¶
func NewHandler(clientPool *qbittorrent.ClientPool, clientAPIKeyStore *models.ClientAPIKeyStore, instanceStore *models.InstanceStore) *Handler
NewHandler creates a new proxy handler
Click to show internal directories.
Click to hide internal directories.