ping

package
v0.0.0-...-bcd2c7c Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const PingRecordTableName = "ping_record"

Variables

This section is empty.

Functions

This section is empty.

Types

type PingRecord

type PingRecord struct {
	PingID     string     `gorm:"column:ping_id;primary_key" json:"ping_id"`
	Message    string     `gorm:"column:message" json:"message"`
	Reply      string     `gorm:"column:reply" json:"reply"`
	CreateTime *time.Time `gorm:"column:create_time;default:CURRENT_TIMESTAMP;NOT NULL" json:"create_time"`
}

func NewPingRecord

func NewPingRecord(message string, reply string) *PingRecord

Jump to

Keyboard shortcuts

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