data_types

package
v0.0.1-20240408-0001 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IpAddresses

type IpAddresses []string

func (IpAddresses) GormDBDataType

func (IpAddresses) GormDBDataType(db *gorm.DB, field *schema.Field) string

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

func (IpAddresses) Value

func (d IpAddresses) Value() (driver.Value, error)

Value -> this is the func which is called when it's necessary to send to Database, the value should be automatically converted to JSON

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL