Documentation ¶ Index ¶ func WithFields(fields ...string) func(*gorm.DB) *gorm.DB func WithIDEq(id uint64) func(*gorm.DB) *gorm.DB func WithIDRange(start, end uint64) func(*gorm.DB) *gorm.DB func WithMacEq(mac string) func(*gorm.DB) *gorm.DB func WithOrder(order string) func(*gorm.DB) *gorm.DB type Device Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WithFields ¶ added in v0.2.1 func WithFields(fields ...string) func(*gorm.DB) *gorm.DB func WithIDEq ¶ added in v0.2.1 func WithIDEq(id uint64) func(*gorm.DB) *gorm.DB func WithIDRange ¶ added in v0.2.1 func WithIDRange(start, end uint64) func(*gorm.DB) *gorm.DB func WithMacEq ¶ added in v0.2.1 func WithMacEq(mac string) func(*gorm.DB) *gorm.DB func WithOrder ¶ added in v0.2.1 func WithOrder(order string) func(*gorm.DB) *gorm.DB Types ¶ type Device ¶ type Device struct { ID uint64 `gorm:"primarykey;"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DeletedAt gorm.DeletedAt `gorm:"index"` Mac string `gorm:"not null;uniqueIndex;type:char(17)"` Comment string `gorm:"type:varchar(255)"` } Source Files ¶ View all Source files device.goscopes.go Click to show internal directories. Click to hide internal directories.