file

package
v0.0.0-...-86f9a86 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package file is a source of file names and contents that contain data for Perf to ingest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Name      string
	Contents  io.ReadCloser
	Created   time.Time
	PubSubMsg *pubsub.Message
}

File represents a single file.

type Source

type Source interface {
	// Start begins the process of looking for new files and as they arrive they
	// are sent on the returned channel.
	//
	// Should only be called once per instance.
	Start(ctx context.Context) (<-chan File, error)
}

Source is a source of Files.

Directories

Path Synopsis
Package dirsource implements the file.Source interface for filesystem directories.
Package dirsource implements the file.Source interface for filesystem directories.
Package gcssource implements files.Source on top of Google Cloud Storage.
Package gcssource implements files.Source on top of Google Cloud Storage.

Jump to

Keyboard shortcuts

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