constant

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_MYSQL_USER     = "root"
	DEFAULT_MYSQL_PASSWORD = "163453"
	DEFAULT_MYSQL_HOST     = "192.168.5.2"
	DEFAULT_MYSQL_PORT     = "3306"
	DEFAULT_SMTP           = "ocuplrlgwgelebej"
	DEFAULT_PROXY          = "http://127.0.0.1:8889"
)

Variables

This section is empty.

Functions

func Ping added in v0.1.0

func Ping(proxy string) error

Types

type OneFile

type OneFile struct {
	Channel  string // 频道id
	FileId   int    // 文件id
	Tag      string // 主文件夹名 #后面的文件名
	Subtag   string // 子(二级)文件夹名 &后面的文件名
	FileName string // 手动设置的文件名 @后面的文件名
	Offset   int    // 偏移量 如下载当前媒体之后第n个文件 +后面的数字
	Capacity int    // 下载当前文件和之后的n个文件 %后面的数字
	Success  bool   // 是否下载成功
}

func (*OneFile) SetCapacity added in v0.0.12

func (f *OneFile) SetCapacity(i int)

func (*OneFile) SetChannel added in v0.0.12

func (f *OneFile) SetChannel(s string)

func (*OneFile) SetFileName added in v0.0.12

func (f *OneFile) SetFileName(s string)

func (*OneFile) SetId added in v0.0.12

func (f *OneFile) SetId(i int)

func (*OneFile) SetOffset added in v0.0.12

func (f *OneFile) SetOffset(i int)

func (*OneFile) SetStatus

func (f *OneFile) SetStatus()

func (*OneFile) SetSubtag added in v0.0.12

func (f *OneFile) SetSubtag(s string)

func (*OneFile) SetTag added in v0.0.12

func (f *OneFile) SetTag(s string)

type Parameter added in v0.1.0

type Parameter struct {
	Proxy      string
	MainFolder string
	SMTP       string
}

func (*Parameter) GetMainFolder added in v0.1.0

func (p *Parameter) GetMainFolder() string

func (*Parameter) GetProxy added in v0.1.0

func (p *Parameter) GetProxy() string

func (*Parameter) GetSMTP added in v0.1.0

func (p *Parameter) GetSMTP() string

func (*Parameter) SetMainFolder added in v0.1.0

func (p *Parameter) SetMainFolder(s string)

func (*Parameter) SetProxy added in v0.1.0

func (p *Parameter) SetProxy(s string)

func (*Parameter) SetSMTP added in v0.1.0

func (p *Parameter) SetSMTP(s string)

Jump to

Keyboard shortcuts

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