Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DriveClient ¶
type DriveClient struct {
*drive.Service
}
DriveClient hg
func GetService ¶
func GetService() *DriveClient
func (*DriveClient) CreateFile ¶
func (srv *DriveClient) CreateFile(folderID string, file *multipart.FileHeader) (models.File, error)
CreateFile Creates a file in google drive and return the file id and filename
func (*DriveClient) CreateFolder ¶
func (srv *DriveClient) CreateFolder(folderName string) (string, error)
CreateFolder Creates a folder in google drive
func (*DriveClient) DeleteFile ¶
func (srv *DriveClient) DeleteFile(fileID string) error
DeleteFile deletes
Click to show internal directories.
Click to hide internal directories.