Documentation ¶
Index ¶
- type JSON
- func (j *JSON) Del(key string) error
- func (j *JSON) Get(key string) (interface{}, error)
- func (JSON) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (JSON) GormDataType() string
- func (js JSON) GormValue(ctx context.Context, db *gorm.DB) clause.Expr
- func (j *JSON) Has(key string) bool
- func (j JSON) MarshalJSON() ([]byte, error)
- func (j *JSON) Scan(value interface{}) error
- func (j *JSON) Set(key string, val interface{}) error
- func (j JSON) String() string
- func (j *JSON) UnmarshalJSON(b []byte) error
- func (j JSON) Value() (driver.Value, error)
- type Meta
- type NullableNumberArray
- type NullableStringArray
- type NumberArray
- type StringArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSON ¶
type JSON json.RawMessage
JSON defined JSON data type, need to implements driver.Valuer, sql.Scanner interface
func (JSON) GormDBDataType ¶
GormDBDataType gorm db data type
func (JSON) MarshalJSON ¶
MarshalJSON to output non base64 encoded []byte
func (*JSON) UnmarshalJSON ¶
UnmarshalJSON to deserialize []byte
type Meta ¶
type Meta struct { UserID *string `json:"userId,omitempty"` SessionID *string `json:"sessionId,omitempty"` Version *int64 `json:"version,omitempty"` }
type NullableNumberArray ¶
type NullableNumberArray []float64
func (NullableNumberArray) GormDBDataType ¶
GormDBDataType gorm db data type
func (*NullableNumberArray) Scan ¶
func (arr *NullableNumberArray) Scan(value interface{}) error
type NullableStringArray ¶
type NullableStringArray []string
func (NullableStringArray) GormDBDataType ¶
GormDBDataType gorm db data type
func (*NullableStringArray) Scan ¶
func (arr *NullableStringArray) Scan(value interface{}) error
type NumberArray ¶
type NumberArray []float64
func (NumberArray) GormDBDataType ¶
GormDBDataType gorm db data type
func (*NumberArray) Scan ¶
func (arr *NumberArray) Scan(value interface{}) error
type StringArray ¶
type StringArray []string
func (StringArray) GormDBDataType ¶
GormDBDataType gorm db data type
func (*StringArray) Scan ¶
func (arr *StringArray) Scan(value interface{}) error
Click to show internal directories.
Click to hide internal directories.