Documentation ¶
Index ¶
- type IpAddresses
- func (IpAddresses) GormDBDataType(db *gorm.DB, field *schema.Field) string
- func (IpAddresses) GormDataType() string
- func (d IpAddresses) MarshalJSON() ([]byte, error)
- func (d *IpAddresses) Scan(value interface{}) error
- func (d *IpAddresses) UnmarshalJSON(b []byte) error
- func (d IpAddresses) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IpAddresses ¶
type IpAddresses []string
func (IpAddresses) GormDBDataType ¶
GormDBDataType gorm db data type This is the Database data type which is sent to the DB
func (IpAddresses) GormDataType ¶
func (IpAddresses) GormDataType() string
GormDataType gorm common data type this is the data type which is defined in the `gorm:type:DATA_TYPE` near the var!
func (IpAddresses) MarshalJSON ¶
func (d IpAddresses) MarshalJSON() ([]byte, error)
MarshalJSON -> convert existing data to JSON
func (*IpAddresses) Scan ¶
func (d *IpAddresses) Scan(value interface{}) error
Scan -> this is the func which is called when it's necessary to read from the Database to the defined variable with this type
func (*IpAddresses) UnmarshalJSON ¶
func (d *IpAddresses) UnmarshalJSON(b []byte) error
UnmarshalJSON -> set existing JSON to current data
Click to show internal directories.
Click to hide internal directories.