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 NewPlistPublish ¶
Types ¶
type AppInfo ¶
type AppInfo struct { Name string BundleId string Version string Build string Icon image.Image Size int64 }
func NewAppParser ¶
type HostInfo ¶
type HostInfo struct { IP string Port int SSLPort int Site string SSLSite string IpaPath string IconPath string }
func NewHostInfo ¶
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 打头
Click to show internal directories.
Click to hide internal directories.