Documentation ¶
Index ¶
- type ChartData
- type Repository
- func (repository Repository) GetAggregatedChartData(filter aggregated_reward.SelectFilter) []ChartData
- func (repository Repository) GetChartData(address string, filter tools.Filter) []ChartData
- func (repository Repository) GetPaginatedAggregatedByAddress(filter aggregated_reward.SelectFilter, pagination *tools.Pagination) []models.AggregatedReward
- func (repository Repository) GetPaginatedByAddress(filter events.SelectFilter, pagination *tools.Pagination) []models.Reward
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *pg.DB) *Repository
func (Repository) GetAggregatedChartData ¶
func (repository Repository) GetAggregatedChartData(filter aggregated_reward.SelectFilter) []ChartData
func (Repository) GetChartData ¶
func (repository Repository) GetChartData(address string, filter tools.Filter) []ChartData
Get filtered chart data by Noah address
func (Repository) GetPaginatedAggregatedByAddress ¶
func (repository Repository) GetPaginatedAggregatedByAddress(filter aggregated_reward.SelectFilter, pagination *tools.Pagination) []models.AggregatedReward
func (Repository) GetPaginatedByAddress ¶
func (repository Repository) GetPaginatedByAddress(filter events.SelectFilter, pagination *tools.Pagination) []models.Reward
Get filtered list of rewards by Noah address
type Resource ¶
type Resource struct { BlockID uint64 `json:"block"` Role string `json:"role"` Amount string `json:"amount"` Address string `json:"address"` Validator string `json:"validator"` ValidatorMeta resource.Interface `json:"validator_meta"` Timestamp string `json:"timestamp"` }
func (Resource) Transform ¶
func (Resource) Transform(model resource.ItemInterface, params ...resource.ParamInterface) resource.Interface
Click to show internal directories.
Click to hide internal directories.