mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
22 lines
343 B
Go
22 lines
343 B
Go
package cascade
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/quic-go/quic-go"
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
type Instance struct {
|
|
gorm.Model
|
|
Name string
|
|
Secret sql.NullString `gorm:"unique;index:idx_secret"`
|
|
IP string
|
|
Online bool
|
|
quic.Connection `gorm:"-"`
|
|
}
|
|
|
|
func (i *Instance) GetKey() uint {
|
|
return i.ID
|
|
}
|