Documentation ¶
Overview ¶
Package asset provides the core business API of handling everything asset related.
Index ¶
- type Core
- func (c Core) AddAsset(ctx context.Context, asset models.Asset) (string, string, error)
- func (c Core) AddAssets(ctx context.Context, assets []models.Asset) (bool, error)
- func (c Core) GetAsset(ctx context.Context, assetID string) (models.Asset, error)
- func (c Core) GetAssetCountBtnKeys(ctx context.Context, startKey, endKey string) (int64, error)
- func (c Core) GetAssetsPagination(ctx context.Context, latestAssetID string, order string, pageNo, limit int64) ([]db.Asset, int64, int64, error)
- func (c Core) GetEarliestAssetID(ctx context.Context) (string, error)
- func (c Core) GetLatestAssetID(ctx context.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core manages the set of API's for block access.
func NewCore ¶
func NewCore(log *zap.SugaredLogger, couchClient *kivik.Client, dbName string) Core
NewCore constructs a core for product api access.
func (Core) GetAssetCountBtnKeys ¶
func (Core) GetAssetsPagination ¶
func (Core) GetEarliestAssetID ¶
Click to show internal directories.
Click to hide internal directories.