Use hekmon's transmissionrpc

This commit is contained in:
Jeffrey Serio 2023-07-18 03:22:51 -05:00
parent 05331cee82
commit 99b524a870
4 changed files with 12 additions and 19 deletions

12
go.mod
View File

@ -1,14 +1,10 @@
module codeberg.org/hyperreal/go-transmission-stats
module tildegit.org/hyperreal/go-transmission-stats
go 1.19
go 1.20
require (
github.com/hekmon/cunits/v2 v2.1.0
github.com/hyperreal64/transmissionrpc v0.0.0-20230416162950-8e2d9f4b086e
github.com/olekukonko/tablewriter v0.0.5
github.com/hekmon/transmissionrpc v1.1.0
)
require (
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/mattn/go-runewidth v0.0.9 // indirect
)
require github.com/hashicorp/go-cleanhttp v0.5.1 // indirect

13
go.sum
View File

@ -1,10 +1,7 @@
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hashicorp/go-cleanhttp v0.5.1 h1:dH3aiDG9Jvb5r5+bYHsikaOUIpcM0xvgMXVoDkXMzJM=
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
github.com/hekmon/cunits/v2 v2.0.2/go.mod h1:9r1TycXYXaTmEWlAIfFV8JT+Xo59U96yUJAYHxzii2M=
github.com/hekmon/cunits/v2 v2.1.0 h1:k6wIjc4PlacNOHwKEMBgWV2/c8jyD4eRMs5mR1BBhI0=
github.com/hekmon/cunits/v2 v2.1.0/go.mod h1:9r1TycXYXaTmEWlAIfFV8JT+Xo59U96yUJAYHxzii2M=
github.com/hyperreal64/transmissionrpc v0.0.0-20230416162950-8e2d9f4b086e h1:XfaGWhejEXIJj72hVEOHcUcouOJUsGap0AJ5vSrAQa4=
github.com/hyperreal64/transmissionrpc v0.0.0-20230416162950-8e2d9f4b086e/go.mod h1:urQVE/SXF2pDxQ5/Sy8xB1t4FjrOwNMHaPWTEAHEStA=
github.com/mattn/go-runewidth v0.0.9 h1:Lm995f3rfxdpd6TSmuVCHVb/QhupuXlYr8sCI/QdE+0=
github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
github.com/hekmon/transmissionrpc v1.1.0 h1:58xY27x2JYxaMlIj7ycKnxqgCm3IjvTxfB7cHPLxOfs=
github.com/hekmon/transmissionrpc v1.1.0/go.mod h1:qkwhsyD/MQSlWvOE1AC92xajwEveAuGsOvTuOBZEuHc=

View File

@ -10,7 +10,7 @@ import (
"time"
"github.com/hekmon/cunits/v2"
"github.com/hyperreal64/transmissionrpc"
"github.com/hekmon/transmissionrpc"
)
func byteCountIEC(b int64) string {

View File

@ -1,4 +1,4 @@
package main
qpackage main
import (
"context"
@ -9,7 +9,7 @@ import (
"time"
"github.com/hekmon/cunits/v2"
"github.com/hyperreal64/transmissionrpc"
"github.com/hekmon/transmissionrpc"
"github.com/olekukonko/tablewriter"
)