Skip to content

Commit

Permalink
update MixcloudBee (go-mixcloud path changes, go fmt), add go-mixclou…
Browse files Browse the repository at this point in the history
…d to modules
  • Loading branch information
Horrendus committed Apr 29, 2019
1 parent 163f5a4 commit efca45c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
11 changes: 5 additions & 6 deletions bees/mixcloudbee/mixcloudbee.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package mixcloudbee
import (
"time"

"github.com/horrendus/go-mixcloud/mixcloud"
"github.com/horrendus/go-mixcloud"

"github.com/muesli/beehive/bees"
)
Expand All @@ -34,11 +34,11 @@ import (
type MixcloudBee struct {
bees.Bee

baseUrl string
feed string
baseUrl string
feed string

client *mixcloud.Client
lastUpdate time.Time
client *mixcloud.Client
lastUpdate time.Time

eventChan chan bees.Event
}
Expand Down Expand Up @@ -105,7 +105,6 @@ func (mod *MixcloudBee) pollFeed(feed string) {
}
}


// Run executes the Bee's event loop.
func (mod *MixcloudBee) Run(cin chan bees.Event) {
mod.eventChan = cin
Expand Down
12 changes: 6 additions & 6 deletions bees/mixcloudbee/mixcloudbeefactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ func (factory *MixcloudBeeFactory) Events() []bees.EventDescriptor {
Type: "string",
},
{
Name: "url",
Description:"Cloudcast URL",
Type: "string",
Name: "url",
Description: "Cloudcast URL",
Type: "string",
},
{
Name: "slug",
Description:"Cloudcast Slug",
Type: "string",
Name: "slug",
Description: "Cloudcast Slug",
Type: "string",
},
},
},
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ require (
github.com/google/go-querystring v0.0.0-20170111101155-53e6ce116135
github.com/gorilla/websocket v1.2.0
github.com/guelfey/go.dbus v0.0.0-20131113121618-f6a3a2366cc3
github.com/horrendus/go-mixcloud v0.0.0-20190427074402-c2164c9e194c
github.com/huandu/facebook v2.1.2+incompatible
github.com/jacobsa/go-serial v0.0.0-20180131005756-15cf729a72d4
github.com/jayeshsolanki93/devgorant v0.0.0-20160810172004-69fb03e5c3b1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ github.com/gorilla/websocket v1.2.0 h1:VJtLvh6VQym50czpZzx07z/kw9EgAxI3x1ZB8taTM
github.com/gorilla/websocket v1.2.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
github.com/guelfey/go.dbus v0.0.0-20131113121618-f6a3a2366cc3 h1:fngCxKbvZdctIsWj2hYijhAt4iK0JXSSA78B36xP0yI=
github.com/guelfey/go.dbus v0.0.0-20131113121618-f6a3a2366cc3/go.mod h1:0CNX5Cvi77WEH8llpfZ/ieuqyceb1cnO5//b5zzsnF8=
github.com/horrendus/go-mixcloud v0.0.0-20190427074402-c2164c9e194c h1:nnb4dSY7AcPeDk91FQt+wpBGV2M2vYdz/3sjN21b/pU=
github.com/horrendus/go-mixcloud v0.0.0-20190427074402-c2164c9e194c/go.mod h1:CyhbQCOE1KktIhrolqimsL9EAgBF9BsWYjnc3hRG5r0=
github.com/huandu/facebook v2.1.2+incompatible h1:APtODfdBm89WyxkAhP2rZlDvPFJv21fQccS1dRFkTdU=
github.com/huandu/facebook v2.1.2+incompatible/go.mod h1:wJogp9rhXUUjDuhx6ZaR5Eylx3dsJmy0zyFRaPYUq5g=
github.com/jacobsa/go-serial v0.0.0-20180131005756-15cf729a72d4 h1:G2ztCwXov8mRvP0ZfjE6nAlaCX2XbykaeHdbT6KwDz0=
Expand Down

0 comments on commit efca45c

Please sign in to comment.