define

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VERSION    string = "v0.4.0"
	ROOT       string = "/"
	SEPARATORS string = "/"
)
View Source
const (
	MaxLevel      uint8  = 0           // 允许访问的最大层级,默认值  0
	Port          int    = 9090        // 指定的服务端口,默认值 9090
	IsAllowUpload bool   = false       // 是否允许上传,默认值:否
	IsSecure      bool   = false       // 是否开启访问登录,默认值:否
	RootPath      string = "/"         // 共享目录的根路径,默认值:当前目录
	Username      string = "admin"     // 访问登录的帐号
	Password      string = "admin"     // 访问登录的密码
	IP            string = "127.0.0.1" // 本机局域网IP
)
View Source
const (
	VersionListURL   = "https://api.github.com/repos/TCP404/OneTiny/tags"
	VersionLatestURL = "https://api.github.com/repos/TCP404/OneTiny/releases/latest"
	VersionByTagURL  = "https://api.github.com/repos/TCP404/OneTiny/releases/tags/"
)

Variables

View Source
var (
	ReleaseName = map[string]string{
		"linux":   "OneTiny",
		"windows": "OneTiny.exe",
		"darwin":  "OneTiny_mac",
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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