BaseConnection defines basic properties that every connection should have
| 26 | |
| 27 | // BaseConnection defines basic properties that every connection should have |
| 28 | type BaseConnection struct { |
| 29 | Name string `gorm:"type:varchar(100);uniqueIndex" json:"name" validate:"required"` |
| 30 | common.Model |
| 31 | } |
| 32 | |
| 33 | func (c BaseConnection) ConnectionId() uint64 { |
| 34 | return c.ID |
nothing calls this directly
no outgoing calls
no test coverage detected