1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add a rudimentary Transmission module (https://transmissionbt.com)

This commit is contained in:
Chris Cummer
2019-06-25 23:04:12 -07:00
parent ae13a3394d
commit 9244d60abe
6 changed files with 149 additions and 3 deletions

View File

@@ -17,18 +17,18 @@ type Widget struct {
// NewWidget creates a new instance of a widget
func NewWidget(app *tview.Application, settings *Settings) *Widget {
widget := Widget{
widget := &Widget{
TextWidget: wtf.NewTextWidget(app, settings.common, false),
settings: settings,
}
return &widget
return widget
}
/* -------------------- Exported Functions -------------------- */
// Fetch rettrieves HIBP data from the HIBP API
// Fetch retrieves HIBP data from the HIBP API
func (widget *Widget) Fetch(accounts []string) ([]*Status, error) {
data := []*Status{}