Documentation
¶
Index ¶
- Constants
- func SetField[T any](t *T, fieldName string, value interface{}) (err error)
- type Base
- type GenericsVarStructHelper
- type TransactionHelper
- func (s TransactionHelper) Discard() (v *gvar.Var, err error)
- func (s TransactionHelper) Exec() (v *gvar.Var, err error)
- func (s TransactionHelper) Multi() (v *gvar.Var, err error)
- func (s TransactionHelper) UnWatch() (v *gvar.Var, err error)
- func (s TransactionHelper) Watch(key string) (v *gvar.Var, err error)
Constants ¶
View Source
const ( ValueTypeInt = "int" ValueTypeInt8 = "int8" ValueTypeInt16 = "int16" ValueTypeInt32 = "int32" ValueTypeInt64 = "int64" ValueTypeUint = "uint" ValueTypeUint8 = "uint8" ValueTypeUint16 = "uint16" ValueTypeUint32 = "uint32" ValueTypeUint64 = "uint64" ValueTypeFloat32 = "float32" ValueTypeFloat64 = "float64" ValueTypeBool = "bool" ValueTypeString = "string" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GenericsVarStructHelper ¶
type GenericsVarStructHelper struct { }
GenericsVarStructHelper 泛型值转换
func NewGenericsVarStructHelper ¶
func NewGenericsVarStructHelper() *GenericsVarStructHelper
func (*GenericsVarStructHelper) Reflect2ValueByType ¶
func (*GenericsVarStructHelper) Var2ValueByType ¶
type TransactionHelper ¶
type TransactionHelper struct {
*Base
}
TransactionHelper Redis Transaction类型助手类
func NewTransactionHelper ¶
func NewTransactionHelper(ctx context.Context) *TransactionHelper
NewTransactionHelper 实例化
Click to show internal directories.
Click to hide internal directories.