Documentation ¶
Index ¶
Constants ¶
View Source
const DailyStatsTable = "tezos.daily_stats"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { Create(stat models.DailyStat) error GetDailyStats(key string, aggType string, filter models.AggTimeFilter) (items []models.AggTimeInt, err error) }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository is the storage repo implementation.
func New ¶
func New(db *gorm.DB) *Repository
New creates an instance of repository using the provided db.
func (*Repository) GetDailyStats ¶
func (r *Repository) GetDailyStats(key string, aggType string, filter models.AggTimeFilter) (items []models.AggTimeInt, err error)
Click to show internal directories.
Click to hide internal directories.