gateway

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DriveFolderMimeType = "application/vnd.google-apps.folder"

Variables

This section is empty.

Functions

This section is empty.

Types

type DriveFileProvider

type DriveFileProvider interface {
	List(param *repository.QueryListParam) (*drive.FileList, error)
	Download(string) ([]byte, error)
}

func NewDriveFileProvider

func NewDriveFileProvider(i do.Injector) (DriveFileProvider, error)

type DriveFileTimestamp

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

func NewDriveFileTimestamp

func NewDriveFileTimestamp(t time.Time) DriveFileTimestamp

func (DriveFileTimestamp) String

func (t DriveFileTimestamp) String() string

type LocalFileProvider

type LocalFileProvider interface {
	List(param *repository.QueryListParam) ([]os.DirEntry, error)
	Read(filePath string) ([]byte, error)
	Write(filePath string, content []byte) error
	Copy(destPath string, srcPath string) error
}

func NewLocalFileProvider

func NewLocalFileProvider(i do.Injector) (LocalFileProvider, error)

Jump to

Keyboard shortcuts

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