database

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

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) Add added in v0.2.0

func (a *AssetStore) Add(asset *orm.Asset) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL