mirror of
https://github.com/Gouryella/drip.git
synced 2026-03-03 20:33:40 +00:00
feat: Add Bearer Token authentication support and optimize code structure
- Add Bearer Token authentication, supporting tunnel access control via the --auth-bearer parameter - Refactor large modules into smaller, more focused components to improve code maintainability - Update dependency versions, including golang.org/x/crypto, golang.org/x/net, etc. - Add SilenceUsage and SilenceErrors configuration for all CLI commands - Modify connector configuration structure to support the new authentication method - Update recent change log in README with new feature descriptions BREAKING CHANGE: Authentication via Bearer Token is now supported, requiring the new --auth-bearer parameter
This commit is contained in:
@@ -3,10 +3,10 @@ package pool
|
||||
import "sync"
|
||||
|
||||
const (
|
||||
SizeSmall = 4 * 1024 // 4KB - HTTP headers, small messages
|
||||
SizeMedium = 32 * 1024 // 32KB - HTTP request/response bodies
|
||||
SizeLarge = 256 * 1024 // 256KB - Data pipe, file transfers
|
||||
SizeXLarge = 1024 * 1024 // 1MB - Large file transfers, bulk data
|
||||
SizeSmall = 4 * 1024 // 4KB - HTTP headers, small messages
|
||||
SizeMedium = 32 * 1024 // 32KB - HTTP request/response bodies
|
||||
SizeLarge = 256 * 1024 // 256KB - Data pipe, file transfers
|
||||
SizeXLarge = 1024 * 1024 // 1MB - Large file transfers, bulk data
|
||||
)
|
||||
|
||||
type BufferPool struct {
|
||||
|
||||
Reference in New Issue
Block a user