Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobRecord ¶
type BlobRecord struct {
ID string `gorm:"primarykey"`
AccountId string `gorm:"column:account_id"`
Path string `gorm:"column:path;type:varchar(100);not null"`
}
func (*BlobRecord) BeforeCreate ¶
func (b *BlobRecord) BeforeCreate(_ *gorm.DB) (err error)
BeforeCreate uses snowflake to generate an BlobID and path.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) CreateBlobRecord ¶
func (m *Manager) CreateBlobRecord(br *BlobRecord) error
func (*Manager) DeleteBlobRecord ¶
func (*Manager) GetBlobRecord ¶
func (m *Manager) GetBlobRecord(bid string) (*BlobRecord, error)
Click to show internal directories.
Click to hide internal directories.