myisam

package
v0.0.0-...-b5b2af5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EmptyPasswordPlaceholder 用于没有修改过密码的 user page
	EmptyPasswordPlaceholder = "*THISISNOTAVALIDPASSWORDTHATCANBEUSEDHERE"

	// LocalHost 用于识别Host是否为仅限本地登陆
	LocalHost = "localhost"
)

Variables

View Source
var RecordDataBrokenErr = errors.New("record data broken")

Functions

This section is empty.

Types

type Record

type Record struct {
	RecType   uint8
	BlockLen  int
	DataLen   int
	NextRec   *Record
	DataBegin int
}

type UserInfo

type UserInfo struct {
	Host     string
	Name     string
	Plugin   string
	Password string
}

func ParseUserFile

func ParseUserFile(f io.Reader) (infos []*UserInfo, err error)

ParseUserFile 从文件中解析用户名和密码

Jump to

Keyboard shortcuts

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