Documentation ¶
Index ¶
- Constants
- func DownloadFile(RoomJID groupme.ID, FileID string, token string) (contents []byte, fname, mime string)
- func DownloadImage(URL string) (bytes *[]byte, mime string, err error)
- func DownloadVideo(previewURL, videoURL, token string) (vidContents []byte, mime string)
- type AuthExt
- type Client
- func (c Client) IndexAllChats() ([]*groupme.Chat, error)
- func (c Client) IndexAllGroups() ([]*groupme.Group, error)
- func (c Client) IndexAllRelations() ([]*groupme.User, error)
- func (c Client) LoadMessagesAfter(groupID groupme.ID, lastMessageID string, lastMessageFromMe bool, private bool) ([]*groupme.Message, error)
- func (c Client) LoadMessagesBefore(groupID, lastMessageID string, private bool) ([]*groupme.Message, error)
- func (c *Client) RemoveFromGroup(uid, groupID groupme.ID) error
- type FayeClient
- type ImgData
- type Message
Constants ¶
View Source
const ( OldUserSuffix = "@c.groupme.com" NewUserSuffix = "@groupme.com" )
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadImage ¶
DownloadImage helper function to download image from groupme; append .large/.preview/.avatar to get various sizes
func DownloadVideo ¶
Types ¶
type AuthExt ¶
type AuthExt struct{}
for authentication, specific implementation will vary based on faye library
type Client ¶
type Client struct {
*groupme.Client
}
func (Client) IndexAllChats ¶
func (Client) IndexAllGroups ¶
func (Client) IndexAllRelations ¶
func (Client) LoadMessagesAfter ¶
func (Client) LoadMessagesBefore ¶
func (*Client) RemoveFromGroup ¶
type FayeClient ¶
type FayeClient struct {
*wray.FayeClient
}
func NewFayeClient ¶
func NewFayeClient(logger log.Logger) *FayeClient
func (FayeClient) WaitSubscribe ¶
func (fc FayeClient) WaitSubscribe(channel string, msgChannel chan groupme.PushMessage)
Click to show internal directories.
Click to hide internal directories.