gdrive

package
v0.0.0-...-a740060 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchedDoc

type FetchedDoc struct {
	OutPath  string
	FileName string
	Data     []byte
}

func (FetchedDoc) SaveToFile

func (d FetchedDoc) SaveToFile()

type FrontMatter

type FrontMatter struct {
	Title       string `yaml:"title"`
	Description string `yaml:"Description"`
	ModifiedBy  string `yaml:"modifiedBy"`
	ModifiedAt  string `yaml:"modifiedAt"`
	CreatedAt   string `yaml:"createdAt"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service to fetch files

func (*Service) FetchDoc

func (s *Service) FetchDoc(docID string, bc []string, meta FrontMatter, rwg *sync.WaitGroup)

FetchDoc fetch google doc from drive

func (*Service) GetFiles

func (s *Service) GetFiles(folderID string, bc []string, rwg *sync.WaitGroup)

GetFiles return google drive files

func (*Service) Init

func (s *Service) Init(client *http.Client)

Init initialize the services

Jump to

Keyboard shortcuts

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