package
0.0.0-20240726084404-24a327084bbc
Repository: https://github.com/lianjiatech/lightning.git
Documentation: pkg.go.dev
# Functions
Caller returns the caller of the function that called it :) https://stackoverflow.com/questions/35212985/is-it-possible-get-information-about-caller-function-in-golang.
FlushReplicationInfo flush master.info.
GetFunctionName 获取调当前函数名.
GoldenDiff 从 gofmt 学来的测试方法 https://medium.com/soon-london/testing-with-golden-files-in-go-7fccc71c43d3.
ListPlugin list support plugin name and description.
LoadMasterInfo get master.info from file.
LogIfError 简化if err != nil 打 Error 日志代码长度.
LogIfWarn 简化if err != nil 打 Warn 日志代码长度.
ParseConfig parse configuration.
PrintConfiguration for `-print-config` flag.
PrintMasterInfo for `-print-master-info` flag.
ShowMasterStatus execute `show master status`, get master info.
SyncReplicationInfo sync replication status into master.info.
TimeOffset timezone offset seconds.
Verbose ...
VerboseVerbose ...
# Variables
Config global config variable.
Log 使用 beego 的 log 库.
MasterInfo replication status info.
# Structs
ChangeMaster change master info.
Configuration config sections.
Filters filters about event.
GlobalConfig global config.
MySQL binlog file location or streamer, if streamer use dsn format.
Rebuild rebuild plugins.