Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserPrivileges ¶
type UserPrivileges struct { User string // contains filtered or unexported fields }
UserPrivileges implements privilege.Checker interface. This is used to check privilege for the current user.
func (*UserPrivileges) Check ¶
func (p *UserPrivileges) Check(ctx context.Context, db *model.DBInfo, tbl *model.TableInfo, privilege mysql.PrivilegeType) (bool, error)
Check implements Checker.Check interface.
func (*UserPrivileges) ShowGrants ¶
ShowGrants implements privilege.Checker ShowGrants interface.
Click to show internal directories.
Click to hide internal directories.