backend

package
v0.0.0-...-56466e5 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Initialize() error
	GetIndex() ([]byte, error)
	GetChart(string) ([]byte, error)
	PutChart(filename string, file multipart.File) error
	Reindex() error
}

A Backend is a generic interface for chart storage

func NewBackend

func NewBackend(cfg *config.AppConfig, init bool) (Backend, error)

NewBackend is a factory that returns a new Backend based on the config

Jump to

Keyboard shortcuts

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