MCPcopy
hub / github.com/radondb/radon / PrivilegeHandler

Interface PrivilegeHandler

src/plugins/privilege/handler.go:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13)
14
15type PrivilegeHandler interface {
16 Init() error
17 Check(db string, user string, node sqlparser.Statement) error
18 CheckPrivilege(db string, user string, node sqlparser.Statement) bool
19 CheckUserPrivilegeIsSet(user string) bool
20 IsSuperPriv(user string) bool
21 GetUserPrivilegeDBS(user string) (dbs map[string]struct{})
22 CheckDBinUserPrivilege(user string, db string) bool
23 Close() error
24}

Callers 35

InitMethod · 0.65
TestXaCheckFailedFunction · 0.65
TestAuditFunction · 0.65
TestAuditMultiThreadFunction · 0.65
TestPurgeFunction · 0.65
TestConnectionRecyleFunction · 0.65

Implementers 1

Privilegesrc/plugins/privilege/privilege.go

Calls

no outgoing calls

Tested by

no test coverage detected