source

package
v0.0.0-...-b474970 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package source provides sources for the links. Currently only single source is implemented = filesystem. In the feature this package might add support for for example http source and we could check links right in running web server without the need to have a local copy of the files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilesystemSource

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

FilesystemSource lists files from given directory/file path.

func Filesystem

func Filesystem(path string, ignore []string) *FilesystemSource

Filesystem creates new lister that can list all links from given directory tree.

func (*FilesystemSource) List

func (fl *FilesystemSource) List() ([]models.Link, error)

List lists all files under given path.

Jump to

Keyboard shortcuts

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