libs

package
v1.0.1-0...-3781452 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: MulanPSL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const PortNum = 5432

PortNum 监听端口号,暂写在代码中

View Source
const SSLPortNum = 5433

SSLPortNum 监听端口号,暂写在代码中

Variables

View Source
var (
	ErrNoIcon = errors.New("icon not found")
)

Functions

func NewPlist

func NewPlist(host *HostInfo, app *AppInfo) error

func NewPlistPublish

func NewPlistPublish(host *HostInfo, app *AppInfo) error

Types

type AppInfo

type AppInfo struct {
	Name     string
	BundleId string
	Version  string
	Build    string
	Icon     image.Image
	Size     int64
}

func NewAppParser

func NewAppParser(name string) (*AppInfo, error)

type HostInfo

type HostInfo struct {
	IP       string
	Port     int
	SSLPort  int
	Site     string
	SSLSite  string
	IpaPath  string
	IconPath string
}

func NewHostInfo

func NewHostInfo() (*HostInfo, error)

type StaticFileServer

type StaticFileServer struct {
}

func (StaticFileServer) FileServer

func (rs StaticFileServer) FileServer(r chi.Router, path string, root http.FileSystem)

func (StaticFileServer) Routes

func (rs StaticFileServer) Routes() chi.Router

配置静态文件的路由 /static 打头

Jump to

Keyboard shortcuts

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