assets

package
v0.0.0-...-247cf46 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 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 Asset

type Asset struct {
	Path string
}

func (Asset) GetPath

func (a Asset) GetPath() string

type AssetHandler

type AssetHandler interface {
	AddAsset(string)
	Init() error
	KnownAssets() []Asset
}

func NewRepository

func NewRepository(path string) AssetHandler

type Repository

type Repository struct {
	Path   string
	Assets []Asset
}

func (*Repository) AddAsset

func (r *Repository) AddAsset(path string)

func (*Repository) Init

func (r *Repository) Init() error

func (*Repository) KnownAssets

func (r *Repository) KnownAssets() []Asset

Jump to

Keyboard shortcuts

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