ingesters

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package ingesters provides reusable data import modules for Takeout services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServiceFolderDetector

func NewServiceFolderDetector(variants []string) func(string) bool

NewServiceFolderDetector creates a detection function for a service based on folder name variants.

Example:

detector := NewServiceFolderDetector([]string{"Google Photos", "Google Foto", "Google Fotos"})
if detector("/path/to/Takeout/Google Photos") {
    // Service folder detected
}

func NewServiceIngesters

func NewServiceIngesters(serviceID string, detectionFunc func(string) bool) []core.Ingester

NewServiceIngesters returns a standard set of ingesters for a Takeout service.

Parameters:

  • serviceID: unique identifier for the service (e.g., "google-photos", "youtube-music")
  • detectionFunc: function that returns true if a path contains the service's data

Returns three ingesters: Folder, ZIP, and TGZ.

Types

This section is empty.

Jump to

Keyboard shortcuts

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