aria2

package
v1.5.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Instance 默认使用的Aria2处理实例

LB 获取 Aria2 节点的负载均衡器

Lock Instance的读写锁

Functions

func GetLoadBalancer

func GetLoadBalancer() balancer.Balancer

GetLoadBalancer 返回供Aria2使用的负载均衡器

func Init

func Init(isReload bool, pool cluster.Pool, mqClient mq.MQ)

Init 初始化

func TestRPCConnection

func TestRPCConnection(server, secret string, timeout int) (rpc.VersionInfo, error)

TestRPCConnection 发送测试用的 RPC 请求,测试服务连通性

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL