source

package
v0.0.0-...-8a6d2ef Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 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 Config

type Config struct {
	Name string `json:"name"`
	URL  string `json:"url"`
	Flags
}

Config is used to configure a filesystem source

type Flags

type Flags struct {
	OpenTar     bool   `json:"open_tar"`
	OpenJournal string `json:"open_journal"`
}

Flags are configuration options for a source

type Source

type Source struct {
	Name string
	FS   filesystem.FileSystem
}

Source is a filesystem source

type Sources

type Sources []Source

func New

func New(c []Config, cache gcache.Cache) (Sources, error)

func (Sources) CloseSources

func (s Sources) CloseSources()

Jump to

Keyboard shortcuts

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