Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyAssets

func CopyAssets(u *url.URL, dir string) error

func NewRouter

func NewRouter(cfg *Config) (*echo.Echo, error)

Types

type Config

type Config struct {
	AssetsDir string
}

type File

type File struct {
	Name       string `json:"name"`
	Compressed int64  `json:"compressed"`
	Checksum   uint32 `json:"checksum"`
}

type Map

type Map struct {
	File string `json:"file"`
	Name string `json:"name"`
}

type MapPack

type MapPack struct {
	*os.File
	*zip.Reader
	// contains filtered or unexported fields
}

func OpenMapPack

func OpenMapPack(path string) (*MapPack, error)

func (*MapPack) Maps

func (m *MapPack) Maps() ([]*Map, error)