tileregistry

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Repo -- repo holds the registered sku interfaces
	Repo = make(map[string]TileGenerator)
)

Functions

func GetRegistry

func GetRegistry() map[string]TileGenerator

GetRegistry -- gets the map of all registered Sku interface objects

func Register

func Register(name string, tile TileGenerator)

Register -- add a Sku interface object to the Repo

Types

type Tile

type Tile interface {
	Backup() error
	Restore() error
}

Tile - definition for what a tile looks like

type TileGenerator

type TileGenerator interface {
	New() Tile
}

TileGenerator - interface for a tile creating object

Jump to

Keyboard shortcuts

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