Documentation ¶
Index ¶
Constants ¶
View Source
const ( PRIMARY = "primary" SECONDARY = "secondary" MASTER = "master" SLAVE = "slave" LEADER = "Leader" FOLLOWER = "Follower" LEARNER = "Learner" CANDIDATE = "Candidate" )
Variables ¶
View Source
var ( ErrNoSQL = fmt.Errorf(errMsgNoSQL) ErrNoUserName = fmt.Errorf(errMsgNoUserName) ErrNoPassword = fmt.Errorf(errMsgNoPassword) ErrNoRoleName = fmt.Errorf(errMsgNoRoleName) ErrInvalidRoleName = fmt.Errorf(errMsgInvalidRoleName) ErrNoSuchUser = fmt.Errorf(errMsgNoSuchUser) ErrNoImplemented = fmt.Errorf(errMsgNotImplemented) )
Functions ¶
func ClientTypes ¶
func ClientTypes() []string
func SortRoleByWeight ¶
Types ¶
type ClientType ¶
type ClientType string
const ( CLI ClientType = "cli" DJANGO ClientType = "django" DOTNET ClientType = ".net" GO ClientType = "go" JAVA ClientType = "java" NODEJS ClientType = "node.js" PHP ClientType = "php" PRISMA ClientType = "prisma" PYTHON ClientType = "python" RAILS ClientType = "rails" RUST ClientType = "rust" SYMFONY ClientType = "symfony" )
func (ClientType) String ¶
func (t ClientType) String() string
type EngineType ¶
type EngineType string
const ( MySQL EngineType = "mysql" WeSQL EngineType = "wesql" PostgreSQL EngineType = "postgresql" OfficialPostgreSQL EngineType = "official-postgresql" ApecloudPostgreSQL EngineType = "apecloud-postgresql" Redis EngineType = "redis" ETCD EngineType = "etcd" MongoDB EngineType = "mongodb" Nebula EngineType = "nebula" PolarDBX EngineType = "polardbx" PulsarBroker EngineType = "pulsar-broker" PulsarProxy EngineType = "pulsar-proxy" FoxLake EngineType = "foxlake" Oceanbase EngineType = "oceanbase" Custom EngineType = "custom" )
type UserInfo ¶
type UserInfo struct { UserName string `json:"userName"` Password string `json:"password,omitempty"` Expired string `json:"expired,omitempty"` ExpireAt time.Duration `json:"expireAt,omitempty"` RoleName string `json:"roleName,omitempty"` }
UserInfo is the user information for account management
func (*UserInfo) PasswdValidator ¶
func (*UserInfo) RoleValidator ¶
func (*UserInfo) UserNameAndPasswdValidator ¶
func (*UserInfo) UserNameAndRoleValidator ¶
func (*UserInfo) UserNameValidator ¶
Click to show internal directories.
Click to hide internal directories.