MCPcopy
hub / github.com/shadow1ng/fscan / createAuthFunc

Method createAuthFunc

plugins/services/mysql.go:71–75  ·  view source on GitHub ↗

createAuthFunc 创建MySQL认证函数

(info *common.HostInfo, config *common.Config, state *common.State)

Source from the content-addressed store, hash-verified

69
70// createAuthFunc 创建MySQL认证函数
71func (p *MySQLPlugin) createAuthFunc(info *common.HostInfo, config *common.Config, state *common.State) AuthFunc {
72 return func(ctx context.Context, cred Credential) *AuthResult {
73 return p.doMySQLAuth(ctx, info, cred, config, state)
74 }
75}
76
77// doMySQLAuth 执行MySQL认证
78func (p *MySQLPlugin) doMySQLAuth(ctx context.Context, info *common.HostInfo, cred Credential, config *common.Config, state *common.State) *AuthResult {

Callers 1

ScanMethod · 0.95

Calls 1

doMySQLAuthMethod · 0.95

Tested by

no test coverage detected