fs

package
v0.0.0-...-dd36d75 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncer

type Syncer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Syncer is a filesystem syncer.

func NewSyncer

func NewSyncer(dst string) (*Syncer, error)

NewSyncer creates a new filesystem syncer and returns it. If dst is an empty string syncer streams the data to stdout.

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context, ch <-chan interface{}) error

Sync stores the data received via channel ch on the filesystem nolint:revive

Jump to

Keyboard shortcuts

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