# Functions
NativePassword generates a mysql_native_password string.
NewAudit creates a wrapped Auth that sends audit trails to the specified method.
NewAuditLog creates a new AuditMethod that logs to a logrus.Logger.
NewNativeFile creates a NativeAuth and loads users from a JSON file.
NewNativeSingle creates a NativeAuth with a single user with given permissions.
# Variables
AllPermissions hold all defined permissions.
DefaultPermissions are the permissions granted to a user if not defined.
ErrDuplicateUser happens when a user appears more than once.
ErrNoPermission is returned when the user lacks needed permissions.
ErrNotAuthorized is returned when the user is not allowed to use a permission.
ErrParseUserFile is given when user file is malformed.
ErrUnknownPermission happens when a user permission is not defined.
PermissionNames is used to translate from human to machine representations.
# Structs
Audit is an Auth method proxy that sends audit trails to the specified AuditMethod.
AuditLog logs audit trails to a logrus.Logger.
MysqlAudit wraps mysql.AuthServer to emit audit trails.
Native holds mysql_native_password users.
None is an Auth method that always succeeds.
# Interfaces
AuditMethod is called to log the audit trail of actions.
Auth interface provides mysql authentication methods and permission checking for users.
# Type aliases
Permission holds permissions required by a query or grated to a user.