Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func DecryptAES ¶
func EncryptAES ¶
func SetEncryptionKey ¶
func SetEncryptionKey(k []byte)
Types ¶
type EncryptedString ¶
type EncryptedString string
func (*EncryptedString) Scan ¶
func (es *EncryptedString) Scan(ctx context.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)
ctx: contains request-scoped values field: the field using the serializer, contains GORM settings, struct tags dst: current model value dbValue: current field's value in database
func (EncryptedString) Value ¶
func (es EncryptedString) Value(ctx context.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (interface{}, error)
ctx: contains request-scoped values field: the field using the serializer, contains GORM settings, struct tags dst: current model value fieldValue: current field's value of the dst
Click to show internal directories.
Click to hide internal directories.