~sergiusens/account-polld/interval

« back to all changes in this revision

Viewing changes to cmd/account-polld/main.go

  • Committer: James Henstridge
  • Date: 2014-07-23 10:37:08 UTC
  • mfrom: (10.1.6 account-polld)
  • Revision ID: james@jamesh.id.au-20140723103708-nd11zgi5ypqj8har
Add the Twitter polling plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        "launchpad.net/account-polld/plugins"
29
29
        "launchpad.net/account-polld/plugins/facebook"
30
30
        "launchpad.net/account-polld/plugins/gmail"
 
31
        "launchpad.net/account-polld/plugins/twitter"
31
32
        "launchpad.net/go-dbus/v1"
32
33
)
33
34
 
91
92
                                plugin = facebook.New()
92
93
                        case SERVICENAME_TWITTER:
93
94
                                // This is just stubbed until the plugin exists.
94
 
                                log.Println("Unhandled account with id", data.AccountId, "for", data.ServiceName)
95
 
                                continue L
 
95
                                log.Println("Creating account with id", data.AccountId, "for", data.ServiceName)
 
96
                                plugin = twitter.New()
96
97
                        default:
97
98
                                log.Println("Unhandled account with id", data.AccountId, "for", data.ServiceName)
98
99
                                continue L