Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMySQLDB ¶
func NewMySQLDB(cfg config.MySQLConfig) (*gorm.DB, error)
Types ¶
type AssetStore ¶ added in v0.2.0
type AssetStore struct {
// contains filtered or unexported fields
}
func NewAssetStore ¶ added in v0.2.0
func NewAssetStore(db *gorm.DB) *AssetStore
func (*AssetStore) GetByAssetID ¶ added in v0.2.0
func (a *AssetStore) GetByAssetID(assetID string) (*orm.Asset, error)
func (*AssetStore) GetByOrmID ¶ added in v0.2.0
func (a *AssetStore) GetByOrmID(ormID uint64) (*orm.Asset, error)
Click to show internal directories.
Click to hide internal directories.