config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const UserConfigTemplate = "{\"ver\": 0, \"users\": {}}"

Variables

This section is empty.

Functions

This section is empty.

Types

type UserConfig

type UserConfig struct {
	Ver   int                  `json:"ver"`
	Users map[string]*UserInfo `json:"users"`
}

UserConfig 用户配置文件结构

type UserInfo

type UserInfo struct {
	Password          string `json:"password"`           // 密码
	Expired           string `json:"expired"`            // 过期时间
	MaxRate           int    `json:"max_rate"`           // 最大传输速率
	MaxConnection     int    `json:"mac_connection"`     // 最大连接数
	CurrentConnection int    `json:"current_connection"` // 当前连接数
}

UserInfo 用户信息结构

Jump to

Keyboard shortcuts

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