port

package
v0.0.0-...-a06bd82 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiverPort

type ArchiverPort interface {
	ArchiveLastYearMonthlyFolders(lastYear int, rootFolderId string) error
	ArchiveLastYearSpreadsheets(lastYear int, rootFolderId string) (lastMonthSpreadSheetId string, err error)
}

type GoogleDrivePort

type GoogleDrivePort interface {
	CopySpreadsheet(targetFile string, destinationFile string) (string, error)
	CopySpreadsheetFromId(targetId string, destinationName string) (string, error)
	CreateFolder(name string, parentFolderId string) (string, error)
	MoveSpreadsheetToAnotherFolder(fileName, sourceFolderId, targetFolderId string) (string, error)
	MoveFolderToAnotherFolder(fileName, sourceFolderId, targetFolderId string) (string, error)
}

type GoogleSheetPort

type GoogleSheetPort interface {
	CutAndPasteRange(spreadSheetId string, cutRange string, pasteRange string) error
	ClearRange(spreadSheetId string, _range string) error
	SetValue(spreadSheetId string, value string, column string) error
}

type Ports

type Ports struct {
	DrivePort        GoogleDrivePort
	SheetPort        GoogleSheetPort
	TranslationsPort TranslationsPort
	ArchiverPort     ArchiverPort
}

type TranslationsPort

type TranslationsPort interface {
	Get(locale string) (*localizer.Localizer, error)
}

Jump to

Keyboard shortcuts

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