Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DB *gorm.DB
)
View Source
var (
InfluxClient *influxdb3.Client
)
Functions ¶
func ConnectInfluxDB ¶
func ConnectInfluxDB()
func RunMigrations ¶
func RunMigrations()
func WritePingResult ¶
Types ¶
type IP ¶
type IP struct { ID uuid.UUID `gorm:"type:char(36);primary_key"` IPAddress string `gorm:"type:varchar(15);unique_index;not null"` Note string `gorm:"type:varchar(64);"` CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP"` LastUpdatedAt *time.Time `gorm:"default:NULL"` Status IPStatus `gorm:"type:enum('active', 'blocked', 'suspended);not null"` }
Click to show internal directories.
Click to hide internal directories.