content

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

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)

Jump to

Keyboard shortcuts

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