repository

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File interface {
	Path() string
	Reader() (io.ReadCloser, error)
	ModTime() time.Time
}

A File in a repo

type Repo

type Repo interface {
	ReadFile(path string) (File, error)
	StoreFile(path string, content io.Reader) error
	DeleteFile(path string) error
	ListFiles(prefix string) ([]File, error)
	SearchFiles(term string) ([]File, error)

	LocalPathForFile(path string) (string, error)

	Observer() <-chan string
	CloseObserver(<-chan string)
}

Repo is a collection of files that make up a wiki

Jump to

Keyboard shortcuts

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