backend

package
v0.1.0-dev-777099b Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomString

func RandomString(n int) string

Types

type Backend

type Backend interface {
	Config() *config.Config
	SaveConfig(conf *config.Config) error

	File() file.Manager
	User() user.Manager
	Auth() auth.Manager
	Plugin() plugin.Manager

	// renderer
	Render(data []byte) ([]byte, error)

	Store() store.Store

	Close()
}

func New

func New(o *Options) (Backend, error)

type Options

type Options struct {
	Wikipath   string
	ConfigFile string
	Version    string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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