twitter

package module
v0.0.0-...-05692b4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tweet

func Tweet(message string, auth *TwitterAuth) (err error)

Types

type Schedule

type Schedule struct {
	Event    eventdata.EventData
	Time     time.Time
	Message  string
	Executed bool
	Hash     []byte
}

Schedule

type Schedules

type Schedules []Schedule

func (*Schedules) Append

func (s *Schedules) Append(e eventdata.EventData, t time.Time, msg string)

type TwitterAuth

type TwitterAuth struct {
	ConsumerKey    string `yaml:"consumerKey" json:"consumerKey"`
	ConsumerSecret string `yaml:"consumerSecret" json:"consumerSecret"`
	AccessToken    string `yaml:"accessToken" json:"accessToken"`
	AccessSecret   string `yaml:"accessSecret" json:"accessSecret"`
}

func GetToken

func GetToken(filepath string) *TwitterAuth

Jump to

Keyboard shortcuts

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