Documentation
¶
Index ¶
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) GetPaginatedByAddress ¶
func (repository Repository) GetPaginatedByAddress(filter events.SelectFilter, pagination *tools.Pagination) []models.Slash
type Resource ¶
type Resource struct {
BlockID uint64 `json:"block"`
Coin string `json:"coin"`
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.