DbStatus represents a status value for database operator.
const (
DbUnknown DbStatus = iota// Unknown DbSuccess // Success (CRUD) DbNotFound // Not found (RUD) DbExisted // Existed (CU) DbFailed // Failed (CRUD) DbTagA DbStatus = iota + 96 // Tag a DbTagB // Tag b DbTagC // Tag c DbTagD // Tag d DbTagE // Tag e)
FsmStatus represents a status value for finite status machine. Actually this is a dummy type.
const (
FsmNone FsmStatus = iota// None FsmInState // In state FsmFinal // Final FsmTagA FsmStatus = iota + 98 // Tag a FsmTagB // Tag b FsmTagC // Tag c FsmTagD // Tag d FsmTagE // Tag e)
JwtStatus represents a status value for jwt and database operator.
const (
JwtUnknown JwtStatus = 0 // Unknown JwtSuccess JwtStatus = iota// Success JwtBlank // Blank token JwtInvalid // Could not be parsed (malformed, unverifiable, invalid signature) JwtTokenNotFound // Token not found JwtUserNotFound // User not found JwtFailed // Something error JwtTagA // Tag a JwtTagB // Tag b JwtTagC // Tag c JwtTagD // Tag d JwtTagE // Tag e)