MCPcopy Create free account
hub / github.com/aurora-develop/aurora / NewHandle

Function NewHandle

initialize/handlers.go:47–49  ·  view source on GitHub ↗
(proxy *proxys.IProxy, token *tokens.AccessToken)

Source from the content-addressed store, hash-verified

45}
46
47func NewHandle(proxy *proxys.IProxy, token *tokens.AccessToken) *Handler {
48 return &Handler{proxy: proxy, token: token, sessions: NewSessionManager()}
49}
50
51// initTurnStileWithRetry 初始化 turnstile,当 paid token 返回 401 时自动禁用并轮询下一个
52func (h *Handler) initTurnStileWithRetry(client **bogdanfinn.TlsClient, secret **tokens.Secret, proxyUrl string) (*chatgpt.TurnStile, int, error) {

Callers 1

RegisterRouterFunction · 0.85

Calls 1

NewSessionManagerFunction · 0.85

Tested by

no test coverage detected