get_gdrive_views

package
v0.0.0-...-2b9f82a Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GDriveViewsGetter

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

func New

func New(client *http.Client, gDriveId string, storage *file_storage.FileStorage) *GDriveViewsGetter

func (*GDriveViewsGetter) GetGdriveDocViews

func (v *GDriveViewsGetter) GetGdriveDocViews(filename string, startTime *time.Time) ([]*GdriveViewEvent, error)

GetGdriveDocViews fetches View events from the Google Reports API

func (*GDriveViewsGetter) LoadFromFile

func (v *GDriveViewsGetter) LoadFromFile(filename string) ([]*GdriveViewEvent, error)

type GdriveViewEvent

type GdriveViewEvent struct {
	DocId    string
	UserHash *hasher.Hash
	Time     *time.Time
	DocTitle string
}

func (GdriveViewEvent) String

func (g GdriveViewEvent) String() string

Jump to

Keyboard shortcuts

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