Documentation ¶
Overview ¶
Package accounts is telephant's account "plugin" system.
Package accounts is telephant's account "plugin" system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account interface { Logo() string Authenticate(code, redirectURI string) (string, string, string, string, error) Run(eventChan chan interface{}) error Post(message string) error Reply(replyid string, message string) error Like(id string) error Unlike(id string) error Follow(id string) error Unfollow(id string) error LoadConversation(id string) ([]MessageEvent, error) LoadAccount(id string) (ProfileEvent, []MessageEvent, error) }
Account describes the interface every implementation of a Telephant social media account must fulfill.
type DeleteEvent ¶
type DeleteEvent struct {
ID string
}
type ErrorEvent ¶
ErrorEvent describes an error that occurred.
type Follow ¶
type Follow struct { Account string Name string Avatar string ProfileURL string ProfileID string Following bool FollowedBy bool }
Follow describes an incoming follow event.
type LoginEvent ¶
type LoginEvent struct { Username string Name string Avatar string ProfileURL string ProfileID string Posts int64 FollowCount int64 FollowerCount int64 PostSizeLimit int64 }
LoginEvent describes a login event.
type MessageEvent ¶
type MessageEvent struct { Account string Name string Reply bool Forward bool Mention bool Like bool Followed bool Notification bool Notify bool Post Post Follow Follow Media []Media }
MessageEvent describes an incoming message event.
type Post ¶
type Post struct { MessageID string Body string Sensitive bool Warning string Author string AuthorURL string AuthorName string AuthorID string Actor string ActorName string ActorID string ReplyToID string ReplyToAuthor string Avatar string PostID string URL string Mentions []User CreatedAt time.Time Liked bool RepliesCount int64 LikesCount int64 Visibility string }
Post represents a message.
Click to show internal directories.
Click to hide internal directories.