keepalive_record.go 245 B

1234567891011121314
  1. //go:generate reform --gofmt=false
  2. package models
  3. import (
  4. "time"
  5. )
  6. //reform:keepalive
  7. type KeepaliveRecord struct {
  8. Port int `reform:"port,pk"`
  9. Counter int64 `reform:"counter"`
  10. UpdatedAt time.Time `reform:"updated_at"`
  11. }