Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckMail ¶
CheckMail - This function is to check the email account for emails in the inbox this function will return a map/list of the messsages in the inbox and their ID for use in the selection process
func Createclient ¶
func Createclient() *gmail.Service
Createclient : This function returns a gmail.service/Client that can then be used to interact with the gmail api.
Types ¶
type Mail ¶
Mail is the gathering of all the data needed to download the attachments from an email
func GetAttachmentData ¶
GetAttachmentData : This function accesses the gmail api with a token and downloads the attachment file data.
func SelectMail ¶
func SelectMail() []Mail
SelectMail will select the appropriate mail from the gmail account based on set requirements. This function will then be passed onto getattachment to download the file data.